copyWith method

PaginationModel copyWith({
  1. int? totalPageCount,
  2. int? currentPageIndex,
  3. int? length,
  4. Map<int, List<int>>? selectedRows,
  5. List<String>? columnsKeysToShow,
})

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,
  );
}