Answers for "check if string exist in a list in flutter"

3

dart check if string is contained in list of strings

String value = 'whatever';

bool res = list.any((listElement) => listElement.contains(value);
Posted by: Guest on March-30-2021

Code answers related to "check if string exist in a list in flutter"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language