copyWith method

TarFile copyWith({
  1. TarHeader? header,
  2. FileBytes? file,
})

Returns a new instance by overriding the values passed as arguments

Implementation

TarFile copyWith({
  TarHeader? header,
  FileBytes? file,
}) =>
    TarFile(header: header ?? this.header, file: file ?? this.file);