copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
@override
TonWalletTransactionTypeTransfer copyWith({
int? amount,
bool? isGasless,
String? comment,
bool? isCommentEncrypted,
}) => TonWalletTransactionTypeTransfer(
amount: amount ?? this.amount,
isGasless: isGasless ?? this.isGasless,
comment: comment ?? this.comment,
isCommentEncrypted: isCommentEncrypted ?? this.isCommentEncrypted,
);