startsWith method

bool startsWith(
  1. String input
)

Returns true if input starts with this pattern, otherwise returns false.

Implementation

bool startsWith(String input) => firstMatch(input)?.start == 0;