pagy library
Classes
- PagyConfig
- Global configuration class for the Pagy package.
-
PagyController<
T> - A controller that manages paginated API data and local item modifications.
- PagyError
- Comprehensive error information for Pagy operations.
-
PagyGridView<
T> - A customizable GridView-like widget powered by PagyController.
-
PagyHorizontalListView<
T> - A customizable horizontal ListView-like widget powered by PagyController.
-
PagyListView<
T> - A customizable ListView-like widget powered by PagyController.
- PagyMetadata
- Metadata about the current pagination state.
-
PagyObserver<
T> - A lightweight widget that listens to a PagyController and rebuilds whenever its PagyState changes.
- PagyParsers
- Built-in response parsers for common API response structures.
- PagyResponseParser
- Represents parsed response data from the paginated API response.
-
PagyState<
T> - Holds the current pagination state for Pagy.
Enums
- PaginationPayloadMode
- Where pagination values should be sent.
- PagyApiRequestType
- HTTP method used for paginated API.
- PagyErrorType
- Types of errors that can occur during pagination.
Extensions
-
PagyControllerHelpers
on PagyController<
T> - Extension providing helper methods for manipulating paginated data inside a PagyController.
-
PagyControllerLoader
on PagyController<
T> - Extension on PagyController that adds API loading and retry functionality.
Typedefs
- PagyEmptyStateBuilder = Widget Function({required VoidCallback retry})
- Signature for building an empty state widget.
-
ValueUpdater<
S> = S Function(S state) - Signature for functions that update a given PagyState.