matchAsPrefix method
Matches this pattern against the start of string.
Returns a match if the pattern matches a substring of string starting at start, and null if the pattern doesn't match a that point.
The start must be non-negative and no greater than string.length.
Implementation
Match? matchAsPrefix(String string, [int start = 0]);
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-core/Pattern/matchAsPrefix.html