copyWith method

  1. @internal
RouteMatchList copyWith({
  1. List<RouteMatchBase>? matches,
  2. Uri? uri,
  3. Map<String, String>? pathParameters,
})

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);
}