copyWith method

  1. @override
MessageTonWalletTransfer copyWith({
  1. int? senderUserId,
  2. String? transactionId,
  3. String? peerAddress,
  4. int? amount,
  5. String? comment,
  6. 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,
);