copyWith method
TonTransaction
copyWith({
- String? id,
- int? gramAmount,
- bool? isRefund,
- int? date,
- TonTransactionType? type,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
TonTransaction copyWith({
String? id,
int? gramAmount,
bool? isRefund,
int? date,
TonTransactionType? type,
}) => TonTransaction(
id: id ?? this.id,
gramAmount: gramAmount ?? this.gramAmount,
isRefund: isRefund ?? this.isRefund,
date: date ?? this.date,
type: type ?? this.type,
);