FlutterLazyLoader<T> class
Null safety
Lazy loading list for flutter
Takes a dataLoader
and a listTile
as parameters
The dataloader
is used for loading more data into the list.
Should the dataloader
-function return an empty list it is assumed that this is the end of the data and no more will be loaded.
The listTile
is the Widget that will be rendered for each data in the list
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FlutterLazyLoader
Constructors
-
FlutterLazyLoader({Key? key, required _GenericAsyncCallback<
T> dataLoader, required _WidgetFunction<T> listTile}) -
const
Properties
-
dataLoader
→ _GenericAsyncCallback<
T> -
Function responsible for loading more data to the list.
Return an empty list when there is no more data and the list will stop trying to request more.
final
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
listTile
→ _WidgetFunction<
T> -
Widget to be displayed for each rendered data in the list
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _FlutterLazyLoaderState< 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 non-existent 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