判断 value 是否在集合中。
value
final characters = <String>{'A', 'B', 'C'}; final containsB = characters.contains('B'); // true final containsD = characters.contains('D'); // false
bool contains(Object? value);