copyWith method

StarTransaction copyWith({
  1. String? id,
  2. StarAmount? starAmount,
  3. bool? isRefund,
  4. int? date,
  5. StarTransactionType? type,
})

Implementation

StarTransaction copyWith({
  String? id,
  StarAmount? starAmount,
  bool? isRefund,
  int? date,
  StarTransactionType? type,
}) =>
    StarTransaction(
      id: id ?? this.id,
      starAmount: starAmount ?? this.starAmount,
      isRefund: isRefund ?? this.isRefund,
      date: date ?? this.date,
      type: type ?? this.type,
    );