copyWith method

SubscriptionSubitem copyWith({
  1. String? id,
  2. String? description,
  3. int? quantity,
  4. int? priceCents,
  5. String? price,
  6. String? total,
  7. bool? recurrent,
  8. bool? destroy,
})

Implementation

SubscriptionSubitem copyWith({
  String? id,
  String? description,
  int? quantity,
  int? priceCents,
  String? price,
  String? total,
  bool? recurrent,
  bool? destroy,
}) {
  return SubscriptionSubitem(
    id: id ?? this.id,
    description: description ?? this.description,
    quantity: quantity ?? this.quantity,
    priceCents: priceCents ?? this.priceCents,
    price: price ?? this.price,
    total: total ?? this.total,
    recurrent: recurrent ?? this.recurrent,
    destroy: destroy ?? this.destroy,
  );
}