copyWith method
Implementation
PaginationModel copyWith({
int? totalItems,
int? itemCount,
int? itemsPerPage,
int? totalPages,
int? currentPage,
}) {
return PaginationModel(
totalItems: totalItems ?? this.totalItems,
itemCount: itemCount ?? this.itemCount,
itemsPerPage: itemsPerPage ?? this.itemsPerPage,
totalPages: totalPages ?? this.totalPages,
currentPage: currentPage ?? this.currentPage,
);
}