copyWith method

TarArchiveInput copyWith({
  1. ItemInput? item,
  2. Option<TarHeaderInput>? header,
})

Returns a new instance by overriding the values passed as arguments

Implementation

TarArchiveInput copyWith({
  ItemInput? item,
  Option<TarHeaderInput>? header,
}) =>
    TarArchiveInput(
        item: item ?? this.item,
        header: header != null ? header.value : this.header);