copyWith method

InvoiceOrder copyWith({
  1. String? description,
  2. String? currency,
  3. String? id,
  4. num? amount,
})

Implementation

InvoiceOrder copyWith(
    {String? description, String? currency, String? id, num? amount}) {
  return InvoiceOrder(
    amount: amount ?? this.amount,
    id: id ?? this.id,
    description: description ?? this.description,
    currency: currency ?? this.currency,
  );
}