contains 方法

bool contains(
  1. Object? element
)
override

判断 value 是否在集合中。

final characters = <String>{'A', 'B', 'C'};
final containsB = characters.contains('B'); // true
final containsD = characters.contains('D'); // false

实现

bool contains(Object? element) => _source.contains(element);