copyWith method

InvoiceItem copyWith({
  1. String? description,
  2. int? quantity,
  3. int? priceCents,
})

Implementation

InvoiceItem copyWith({
  String? description,
  int? quantity,
  int? priceCents,
}) {
  return InvoiceItem(
    description: description ?? this.description,
    quantity: quantity ?? this.quantity,
    priceCents: priceCents ?? this.priceCents,
  );
}