endsWithAny method

bool endsWithAny(
  1. Iterable<String> strings
)

Checks if the string ends with any of the provided strings. Returns true if the string ends with any of the provided strings, false otherwise.

Implementation

bool endsWithAny(Iterable<String> strings) => strings.any((element) => endsWith(element));