copyWith method
Implementation
PaginationModel copyWith({
int? totalPageCount,
int? currentPageIndex,
int? length,
Map<int, List<int>>? selectedRows,
List<String>? columnsKeysToShow,
}) {
return PaginationModel(
totalPageCount: totalPageCount ?? this.totalPageCount,
currentPageIndex: currentPageIndex ?? this.currentPageIndex,
length: length ?? this.length,
selectedRows: selectedRows ?? this.selectedRows,
columnsKeysToShow: columnsKeysToShow ?? this.columnsKeysToShow,
);
}