copyWith method
Create a new RouteMatchList with given parameter replaced.
Implementation
@internal
RouteMatchList copyWith({
List<RouteMatchBase>? matches,
Uri? uri,
Map<String, String>? pathParameters,
}) {
return RouteMatchList(
matches: matches ?? this.matches,
uri: uri ?? this.uri,
extra: extra,
error: error,
pathParameters: pathParameters ?? this.pathParameters);
}