copyWith method
Create a copy of the current instance and override zero or more values.
Implementation
RouteFile copyWith({
String? name,
String? path,
String? route,
List<String>? params,
bool? wildcard,
}) {
return RouteFile(
name: name ?? this.name,
path: path ?? this.path,
route: route ?? this.route,
params: params ?? this.params,
wildcard: wildcard ?? this.wildcard,
);
}