copyWith method

InvoiceListModel copyWith({
  1. Facets? facets,
  2. int? totalItems,
  3. List<InvoiceModel>? items,
})

Implementation

InvoiceListModel copyWith({
  Facets? facets,
  int? totalItems,
  List<InvoiceModel>? items,
}) {
  return InvoiceListModel(
    facets: facets ?? this.facets,
    totalItems: totalItems ?? this.totalItems,
    items: items ?? this.items,
  );
}