copyWith method

  1. @override
TonWalletTransactionTypeTransfer copyWith({
  1. int? amount,
  2. bool? isGasless,
  3. String? comment,
  4. 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
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,
);