flatContainsAny<V> method

bool flatContainsAny<V>(
  1. Iterable<V> values
)

Checks if the string contains any of the specified texts.

Returns true if the string contains any of the texts in the values iterable, otherwise returns false.

Implementation

bool flatContainsAny<V>(Iterable<V> values) {
  for (var t in values) {
    if (flatContains(t)) {
      return true;
    }
  }
  return false;
}