strEndsWithAny method

bool strEndsWithAny(
  1. List<String> values
)

Implementation

bool strEndsWithAny(List<String> values) {
  return values.any((value) => endsWith(value));

  // example:
  // strEndsWithAny('Hello World', ['World', 'hello']); // returns true
  // strEndsWithAny('Hello World', ['world', 'hello']); // returns false
  // strEndsWithAny('Hello World', ['Hello', 'hello']); // returns false
}