flutter test if string in List string code example
Example: dart check if string is contained in list of strings
String value = 'whatever';
bool res = list.any((listElement) => listElement.contains(value);
String value = 'whatever';
bool res = list.any((listElement) => listElement.contains(value);