copyWith method
Returns a new instance by overriding the values passed as arguments
Implementation
TarHeaderModel copyWith({
Option<int /*U32*/ >? mode,
Option<BigInt /*U64*/ >? uid,
Option<BigInt /*U64*/ >? gid,
Option<BigInt /*U64*/ >? mtime,
Option<String>? username,
Option<String>? groupname,
Option<int /*U32*/ >? deviceMajor,
Option<int /*U32*/ >? deviceMinor,
}) =>
TarHeaderModel(
mode: mode != null ? mode.value : this.mode,
uid: uid != null ? uid.value : this.uid,
gid: gid != null ? gid.value : this.gid,
mtime: mtime != null ? mtime.value : this.mtime,
username: username != null ? username.value : this.username,
groupname: groupname != null ? groupname.value : this.groupname,
deviceMajor:
deviceMajor != null ? deviceMajor.value : this.deviceMajor,
deviceMinor:
deviceMinor != null ? deviceMinor.value : this.deviceMinor);