copyWith method

RouteFile copyWith({
  1. String? name,
  2. String? path,
  3. String? route,
  4. List<String>? params,
  5. bool? wildcard,
})

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