copyWith method

Receipt copyWith({
  1. Client? client,
  2. Company? company,
  3. List<Item>? items,
  4. List<Payment>? payments,
  5. double? total,
})

Implementation

Receipt copyWith({
  Client? client,
  Company? company,
  List<Item>? items,
  List<Payment>? payments,
  double? total,
}) =>
    Receipt(
      client: client ?? this.client,
      company: company ?? this.company,
      items: items ?? this.items,
      payments: payments ?? this.payments,
      total: total ?? this.total,
    );