copyWith method

CustomersModel copyWith({
  1. int? totalItems,
  2. List<CustomerModel>? items,
})

Implementation

CustomersModel copyWith({
  int? totalItems,
  List<CustomerModel>? items,
}) {
  return CustomersModel(
    totalItems: totalItems ?? this.totalItems,
    items: items ?? this.items,
  );
}