copyWith method
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,
);
}