hwo to check if something contains in list in flutter dart code example
Example 1: dart check if string is contained in list of strings
String value = 'whatever';
bool res = list.any((listElement) => listElement.contains(value);
Example 2: dart check if value is in list
list.contains(x);
Contains method