endsWithAny method
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));