UriParser constructor

UriParser(
  1. UriTemplate template, {
  2. bool fragmentPrefixMatching = true,
  3. bool queryParamsAreOptional = false,
})

Implementation

UriParser(
  this.template, {
  bool fragmentPrefixMatching = true,
  bool queryParamsAreOptional = false,
})  : _fragmentPrefixMatching = fragmentPrefixMatching,
      _queryParamsAreOptional = queryParamsAreOptional {
  final compiler = _Compiler(template);
  _pathRegex = compiler.pathRegex;
  _pathVariables = compiler.pathVariables;
  _queryVariables = compiler.queryVariables;
  _fragmentRegex = compiler.fragmentRegex;
  _fragmentVariables = compiler.fragmentVariables;
}