matchAsPrefix method

  1. @override
Match? matchAsPrefix(
  1. String string, [
  2. int start = 0
])
override

Match the delimited pattern against the string at the position of start.

start must not be null and must be >= 0.

Implementation

@override
Match? matchAsPrefix(String string, [int start = 0]) {
  assert(start >= 0);
  return pattern.matchAsPrefix(string, start);
}