AnimatedInfinitePaginationOptions<T> class
Constructors
-
AnimatedInfinitePaginationOptions.new({AnimatedInfiniteItemBuilder<
T> ? itemBuilder, List<SliverCustomWidget> ? topWidgets, Widget? loadingWidget, Widget? errorWidget, Widget? noItemsWidget, bool refreshIndicator = true, dynamic onRefresh()?, Axis scrollDirection = Axis.vertical, SliverGridDelegate? gridDelegate, Widget customSliverChild(BuildContext context, List<PaginationModel< )?, bool? spawnIsolate, double? cacheExtent, ScrollPhysics? physics, ScrollBehavior? scrollBehavior, Clip clipBehavior = Clip.hardEdge, bool reverse = false, EdgeInsets padding = EdgeInsets.zero, double scrollOffset = 100, bool? primary, bool? scrollbar})T> > -
const
Properties
- cacheExtent → double?
-
The viewport has an area before and after the visible area to cache items
that are about to become visible when the user scrolls.
final
- clipBehavior → Clip
-
The content will be clipped (or not) according to this option.
final
-
customSliverChild
→ Widget Function(BuildContext context, List<
PaginationModel< )?T> > -
Custom Sliver Widget inside AnimatedInfiniteScrollView
final
- errorWidget → Widget?
-
errorWidget is a widget appears in the bottom of the scrollView when an exception thrown in pagingController.
final
-
footerLoadingWidget is a widget appears when user scroll to bottom of the AnimatedInfiniteScrollView
and the nextPage data is in loading state.
final
- gridDelegate → SliverGridDelegate?
-
A delegate that controls the layout of the children within the GridView.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
itemBuilder
→ AnimatedInfiniteItemBuilder<
T> ? -
builder of each item in list.
width of itemBuilder is required when gridDelegate == null and scrollDirection == Axis.horizontal
final
- loadingWidget → Widget?
-
loadingWidget is a widget appears when first page is in loading state.
final
- noItemsWidget → Widget?
-
noItemsWidget is a widget appears after fetch first page data and the result is empty
final
- onRefresh → dynamic Function()?
-
callback called when user swipe refresh to load new list
final
- padding → EdgeInsets
-
AnimatedInfiniteScrollView padding
final
- physics → ScrollPhysics?
-
How the scroll view should respond to user input.
If an explicit ScrollBehavior is provided to scrollBehavior, the
ScrollPhysics provided by that behavior will take precedence after
physics.
final
- primary → bool?
-
Whether this is the primary scroll view associated with the parent
PrimaryScrollController.
final
- refreshIndicator → bool
-
warp ScrollView in RefreshIndicator when refreshIndicator ==
true
final - reverse → bool
-
Whether the scroll view scrolls in the reading direction.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollbar → bool?
-
make AnimatedInfiniteScrollView inside Scrollbar
final
- scrollBehavior → ScrollBehavior?
-
ScrollBehaviors also provide ScrollPhysics. If an explicit
ScrollPhysics is provided in physics, it will take precedence,
followed by scrollBehavior, and then the inherited ancestor
ScrollBehavior.
final
- scrollDirection → Axis
-
Scroll Direction default value is Axis.vertical
width of itemBuilder is required when gridDelegate == null and scrollDirection == Axis.horizontal
final
- scrollOffset → double
-
AnimatedInfiniteScrollView always scroll by scrollOffset
when paging state is PaginationLoadingState is PaginationStateEnum.loading or PaginationStateEnum.error,
final
- spawnIsolate → bool?
-
Whether to spawn a new isolate on which to calculate the diff on.
final
-
topWidgets
→ List<
SliverCustomWidget> ? -
pass topWidgets when you want to place a widget at the top of the first itemBuilder widget.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited