EasyInfiniteScroll<T> class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- EasyInfiniteScroll
Constructors
-
EasyInfiniteScroll({Key? key, required bool hasMoreData, required Future<
List< onFetch(), required Future<T> >List< onRefresh(), required Widget widgetBuilder(dynamic data), Widget? loaderBuilder()?, Widget? noMoreItemsBuilder()?, Widget? noItemsBuilder()?, String noMoreItemsText = 'No more items', String noItemsText = 'No items'})T> > -
Creates an infinite scroll list
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasMoreData → bool
-
A bool to determine if the lists has more data to be loaded
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- loaderBuilder → (Widget? Function()?)
-
A function that can be used to create a widget to display a custom loader
final
- noItemsBuilder → (Widget? Function()?)
-
A function that can be used to create a widget to display a custom
No items
widgetfinal - noItemsText → String
-
A
String
param that can be changed to display a different message when there are no items to loadfinal - noMoreItemsBuilder → (Widget? Function()?)
-
A function that can be used to create a widget to display a custom
No more items
widgetfinal - noMoreItemsText → String
-
A
String
param that can be changed to display a different message when there are no more items to loadfinal -
onFetch
→ Future<
List< Function()T> > -
A Future method that returns a List with the selected data type on fetch
final
-
onRefresh
→ Future<
List< Function()T> > -
A Future method that returns a List with the selected data type on refresh
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- widgetBuilder → Widget Function(dynamic data)
-
A function that that receives values for the current data index and returns a widget that can be filled using the param data
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _EasyInfiniteScrollState -
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