startsWithAny method

bool startsWithAny(
  1. Iterable<String> strings
)

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

Implementation

bool startsWithAny(Iterable<String> strings) => strings.any((element) => startsWith(element));