copyWith method

TableDatasourceConfig<M> copyWith({
  1. int? pageSize,
  2. int? currentPage,
  3. Map<int, List<M>>? pages,
  4. bool? firstSearch,
  5. bool? loadedAll,
  6. bool? loading,
})

Implementation

TableDatasourceConfig<M> copyWith({
  int? pageSize,
  int? currentPage,
  Map<int, List<M>>? pages,
  bool? firstSearch,
  bool? loadedAll,
  bool? loading,
}) {
  return TableDatasourceConfig(
    pageSize: pageSize ?? this.pageSize,
    currentPage: currentPage ?? this.currentPage,
    pages: pages ?? this.pages,
    firstSearch: firstSearch ?? this.firstSearch,
    loadedAll: loadedAll ?? this.loadedAll,
    loading: loading ?? this.loading,
  );
}