matchPatternAsPrefix method

RegExpMatch? matchPatternAsPrefix(
  1. String loc
)
inherited

Match this route against a location.

Implementation

RegExpMatch? matchPatternAsPrefix(String loc) {
  return _pathRE.matchAsPrefix('/$loc') as RegExpMatch? ??
      _pathRE.matchAsPrefix(loc) as RegExpMatch?;
}