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