contains method

bool contains(
  1. O o
)

Implementation

bool contains(O o) {
  var g = _getGroup(o);
  return g.any((e) => identical(e, o));
}