copyWith method

TonWalletTransaction copyWith({
  1. String? id,
  2. String? peerAddress,
  3. int? peerUserId,
  4. String? peerDomain,
  5. int? date,
  6. int? feeAmount,
  7. TonWalletTransactionState? state,
  8. TonWalletTransactionType? type,
})

Implementation

TonWalletTransaction copyWith({
  String? id,
  String? peerAddress,
  int? peerUserId,
  String? peerDomain,
  int? date,
  int? feeAmount,
  TonWalletTransactionState? state,
  TonWalletTransactionType? type,
}) =>
    TonWalletTransaction(
      id: id ?? this.id,
      peerAddress: peerAddress ?? this.peerAddress,
      peerUserId: peerUserId ?? this.peerUserId,
      peerDomain: peerDomain ?? this.peerDomain,
      date: date ?? this.date,
      feeAmount: feeAmount ?? this.feeAmount,
      state: state ?? this.state,
      type: type ?? this.type,
    );