copyWith method

WitFile copyWith({
  1. String? path,
  2. String? contents,
})

Returns a new instance by overriding the values passed as arguments

Implementation

WitFile copyWith({String? path, String? contents}) =>
    WitFile(path: path ?? this.path, contents: contents ?? this.contents);