Checks if the string ends with any of the provided suffixes.
Example:
'hello'.endsWithAny(['lo', 'la']); // true
bool endsWithAny(Iterable<String> suffixes) => suffixes.any((String suffix) => endsWith(suffix));