containsAny method

bool containsAny(
  1. Iterable<String> values
)

check if this contains any one of the value from list

Example:

print('This is my code'.containsAny(['code','hello'])); // => true
print('This is my code'.containsAny(['hello','world'])); // => false

Implementation

bool containsAny(Iterable<String> values) => values.any(contains);