UriParser constructor
UriParser(
- UriTemplate template, {
- bool fragmentPrefixMatching = true,
- 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;
}