copyWith method
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,
);