matchAsPrefix static method
Refer to String.matchAsPrefix
If string is null then it is treated as an empty String
Implementation
static Match? matchAsPrefix(
String? pattern,
String string, [
int start = 0,
]) => (pattern ?? '').matchAsPrefix(string, start);