copyWith method

Items copyWith({
  1. String? id,
  2. String? description,
  3. String? scheduledDate,
  4. String? invoiceId,
  5. String? customerRef,
  6. String? total,
  7. String? taxes,
  8. String? clientShare,
  9. String? commission,
  10. String? numberOfInstallments,
  11. String? installment,
})

Implementation

Items copyWith({
  String? id,
  String? description,
  String? scheduledDate,
  String? invoiceId,
  String? customerRef,
  String? total,
  String? taxes,
  String? clientShare,
  String? commission,
  String? numberOfInstallments,
  String? installment,
}) {
  return Items(
    id: id ?? this.id,
    description: description ?? this.description,
    scheduledDate: scheduledDate ?? this.scheduledDate,
    invoiceId: invoiceId ?? this.invoiceId,
    customerRef: customerRef ?? this.customerRef,
    total: total ?? this.total,
    taxes: taxes ?? this.taxes,
    clientShare: clientShare ?? this.clientShare,
    commission: commission ?? this.commission,
    numberOfInstallments: numberOfInstallments ?? this.numberOfInstallments,
    installment: installment ?? this.installment,
  );
}