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