containsAny method

bool containsAny(
  1. Iterable<String> others
)

Returns true if this String contains any element of others.

Implementation

bool containsAny(Iterable<String> others) {
  for (var s in others) {
    if (contains(s)) {
      return true;
    }
  }
  return false;
}