copyWith method

RoutePath copyWith({
  1. String? path,
  2. Map<String, String>? params,
  3. Map<String, String>? queryParams,
})

Creates a copy of this RoutePath with the given fields replaced.

Implementation

RoutePath copyWith({
  String? path,
  Map<String, String>? params,
  Map<String, String>? queryParams,
}) {
  return RoutePath(
    path ?? this.path,
    params: params ?? this.params,
    queryParams: queryParams ?? this.queryParams,
  );
}