Answers for "how to check if string contains substring in dart"

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 "how to check if string contains substring in dart"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language