ZenInfiniteQueryWhenExtension<T> extension
Convenience extension on ZenInfiniteQuery for declarative UI building.
Provides infinite-scroll-aware builders that expose the paging controls as part of the data callback, making it easy to drive a ListView with a "Load More" footer.
- on
Methods
-
when(
{required Widget data(List< T> pages, bool hasNextPage, VoidCallback fetchNextPage), Widget loading()?, Widget error(Object error, VoidCallback retry)?, Widget idle()?, bool autoFetch = true, bool showStaleData = true}) → Widget -
Available on ZenInfiniteQuery<
Builds UI declaratively based on the infinite query state.T> , provided by the ZenInfiniteQueryWhenExtension extension