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,
  9. dynamic extra,
  10. int? clientId,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

TonWalletTransaction copyWith({
  String? id,
  String? peerAddress,
  int? peerUserId,
  String? peerDomain,
  int? date,
  int? feeAmount,
  TonWalletTransactionState? state,
  TonWalletTransactionType? type,
  dynamic extra,
  int? clientId,
}) => 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,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);