copyWith method

GetxPagingState<T> copyWith({
  1. List<List<T>>? pages,
  2. List<int>? keys,
  3. Object? error,
  4. bool? hasNextPage,
  5. bool? isLoading,
  6. String? search,
  7. GetxCancelToken? cancelToken,
})

Implementation

GetxPagingState<T> copyWith({
  List<List<T>>? pages,
  List<int>? keys,
  Object? error,
  bool? hasNextPage,
  bool? isLoading,
  String? search,
  GetxCancelToken? cancelToken,
}) {
  return GetxPagingState<T>(
    pages: pages ?? this.pages,
    keys: keys ?? this.keys,
    error: error ?? this.error,
    hasNextPage: hasNextPage ?? this.hasNextPage,
    isLoading: isLoading ?? this.isLoading,
    search: search ?? this.search,
    cancelToken: cancelToken ?? this.cancelToken,
  );
}