dart list contains 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);