copyWith method

TonTransaction copyWith({
  1. String? id,
  2. int? gramAmount,
  3. bool? isRefund,
  4. int? date,
  5. TonTransactionType? type,
})

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,
);