InfiniteQueryState<TData, TParams, TError> constructor

InfiniteQueryState<TData, TParams, TError>({
  1. List<TData> data = const [],
  2. required TParams parameters,
  3. int currentPage = 1,
  4. int totalPages = 0,
  5. int totalItems = 0,
  6. bool hasNextPage = false,
  7. InfiniteQueryLoadingState loadingState = InfiniteQueryLoadingState.initial,
  8. TError? error,
})

Implementation

InfiniteQueryState({
  this.data = const [],
  required this.parameters,
  this.currentPage = 1,
  this.totalPages = 0,
  this.totalItems = 0,
  this.hasNextPage = false,
  this.loadingState = InfiniteQueryLoadingState.initial,
  this.error,
});