copyWith method
ReevaluatableRouteMatch<T, R>
copyWith({
- String? stringMatch,
- Parameters? pathParams,
- Parameters? queryParams,
- List<
RouteMatch> ? children, - String? fragment,
- List<
String> ? segments, - String? redirectedFrom,
- Object? args,
- LocalKey? key,
- AutoRoute? config,
- bool? autoFilled,
- List<
AutoRouteGuard> ? evaluatedGuards,
override
Returns a new instance of RouteMatch with the overridden values
Implementation
@override
ReevaluatableRouteMatch<T, R> copyWith({
String? stringMatch,
Parameters? pathParams,
Parameters? queryParams,
List<RouteMatch>? children,
String? fragment,
List<String>? segments,
String? redirectedFrom,
Object? args,
LocalKey? key,
AutoRoute? config,
bool? autoFilled,
List<AutoRouteGuard>? evaluatedGuards,
}) {
return ReevaluatableRouteMatch<T, R>(
currentPage: currentPage,
originalMatch: super.copyWith(
stringMatch: stringMatch,
pathParams: pathParams,
queryParams: queryParams,
children: children,
fragment: fragment,
segments: segments,
redirectedFrom: redirectedFrom,
args: args,
key: key,
config: config ?? _config,
autoFilled: autoFilled ?? this.autoFilled,
evaluatedGuards: evaluatedGuards ?? _evaluatedGuards,
),
);
}