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