PaginationState<T> constructor

const PaginationState<T>({
  1. List<T> items = const [],
  2. int currentPage = 1,
  3. int lastPage = 1,
  4. bool isLoading = false,
  5. bool loadingInitialPage = true,
  6. bool hasError = false,
  7. int total = 0,
  8. String? searchQuery,
})

Creates a new PaginationState with the given values.

Implementation

const PaginationState({
  this.items = const [],
  this.currentPage = 1,
  this.lastPage = 1,
  this.isLoading = false,
  this.loadingInitialPage = true,
  this.hasError = false,
  this.total = 0,
  this.searchQuery,
});