widget/kaeru_widget/composables/use_request/use_request library
Classes
-
LoadMoreController<
T> - Manages the state and lifecycle of a "load more" request.
-
PaginationController<
T> - Manages the state and lifecycle of a paginated request.
-
PaginationOptions<
T> - Options for configuring the behavior of usePagination.
-
PaginationResult<
T> - Represents the result of a paginated request.
-
RequestController<
T> - Manages the state and lifecycle of an asynchronous request.
-
RequestOptions<
T> - Options for configuring the behavior of useRequest.
Functions
-
useLoadMore<
T> (Future< List< service(int page, T? lastItem)) → LoadMoreController<T> >T> - A composable for managing "load more" or infinite scrolling data fetching.
-
usePagination<
T> (Future< PaginationResult< service(int page, int pageSize), {PaginationOptions<T> >T> options = const PaginationOptions()}) → PaginationController<T> - A composable for managing paginated data fetching.
-
usePolling<
T> (Future< T> service(), {Duration interval = const Duration(seconds: 5)}) → RequestController<T> - A composable for managing polling requests.
-
useRequest<
T> (Future< T> service(), {RequestOptions<T> options = const RequestOptions()}) → RequestController<T> - A composable for managing asynchronous data fetching.