AnimatedInfiniteScrollView<T extends Object> class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AnimatedInfiniteScrollView
Constructors
-
AnimatedInfiniteScrollView({required PaginationViewModel<
T> viewModel, Widget itemBuilder(BuildContext context, int index, T item)?, Widget? topWidget, Widget? loadingWidget, Widget? errorWidget, Widget? noItemsWidget, ScrollPhysics? physics, bool refreshIndicator = false, dynamic onRefresh()?, Axis scrollDirection = Axis.vertical, SliverGridDelegate? gridDelegate, Widget child(BuildContext context, List<PaginationModel< )?, EdgeInsets? padding, bool? spawnIsolate, Key? key})T> > -
const
Properties
-
child
→ (Widget Function(BuildContext context, List<
PaginationModel< )?)T> > -
Custom Widget inside
AnimatedPaginationScrollView
final - errorWidget → Widget?
-
errorWidget is a widget appears in the bottom of the scrollView when an exception thrown in viewModel.
final
-
footerLoadingWidget is a widget appears when user scroll to bottom of the
AnimatedPaginationScrollView
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 → (Widget Function(BuildContext context, int index, T item)?)
-
builder of each item in list.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- 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?
-
scroll-view padding
final
- physics → ScrollPhysics?
-
ScrollPhysics of scrollView.
final
- refreshIndicator → bool
-
warp ScrollView in RefreshIndicator when refreshIndicator ==
true
final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollDirection → Axis
-
Scroll Direction default value is Axis.vertical
final
- spawnIsolate → bool?
-
Whether to spawn a new isolate on which to calculate the diff on.
final
- topWidget → Widget?
-
pass topWidget when you want to place a widget at the top of the first itemBuilder widget.
final
-
viewModel
→ PaginationViewModel<
T> -
class extends PaginationViewModel.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< AnimatedInfiniteScrollView< T> > -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of
DiagnosticsNode
objects describing this node's children.inherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited