Returns true if input starts with this pattern, otherwise returns false.
true
input
this
false
bool startsWith(String input) => firstMatch(input)?.start == 0;