containWithoutCase method

bool containWithoutCase(
  1. String value
)

check if list contains value without considering case

Implementation

bool containWithoutCase(String value) {
  return any((element) => element.toLowerCase() == value.toLowerCase());
}