copyWith method

MiddlewareFile copyWith({
  1. String? name,
  2. String? path,
})

Create a copy of the current instance and override zero or more values.

Implementation

MiddlewareFile copyWith({String? name, String? path}) {
  return MiddlewareFile(
    name: name ?? this.name,
    path: path ?? this.path,
  );
}