withId method
Returns a new instance of RouteMatch with the overridden id
Implementation
RouteMatch withId(LocalKey newId) {
return RouteMatch._internal(
id: newId,
config: _config,
stringMatch: stringMatch,
segments: segments,
children: children,
params: params,
queryParams: queryParams,
fragment: fragment,
args: args,
key: key,
redirectedFrom: redirectedFrom,
autoFilled: autoFilled,
evaluatedGuards: _evaluatedGuards,
);
}