contains method
Whether value is in the set.
final characters = <String>{'A', 'B', 'C'};
final containsB = characters.contains('B'); // true
final containsD = characters.contains('D'); // false
Implementation
bool? contains(Object? valueToEvaluate) => value?.contains(valueToEvaluate);