containsAny method

bool containsAny(
  1. Iterable<Object?> others
)

Returns true if any of the given others is in the list.

Implementation

bool containsAny(Iterable<Object?> others) {
  if (this == null) {
    return false;
  }
  return others.any((element) => this!.contains(element));
}