contains method

bool contains(
  1. Object? element
)

Whether value is in the set.

Implementation

bool contains(Object? element) {
  if (this == null) {
    return false;
  }
  return this!.contains(element);
}