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.