flutter check if string exists in list 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);