LoadMoreListData<T> class

LoadMoreListData is the main, and and only widget you need to archive pagination

Inheritance

Constructors

LoadMoreListData({Key? key, required OnInit<T> onInit, required ItemBuilder<T> builder, required OnLoad<T> onLoad, EdgeInsetsGeometry? padding, Widget? onInitialLoading, Widget? onLoadMoreLoading, Widget? topWidget, Widget? bottomWidget, Widget? onNoData, EdgeInsetsGeometry? itemPadding, int? initPage = 1})
LoadMoreListData is the main, and and only widget you need to archive pagination
const

Properties

bottomWidget → Widget?
you can pass an additional widget that will display on the bottom of the list
final
builder → ItemBuilder<T>
builder will BuildContext and itemData as a single item. and it will expect a widget that will represent a single item
final
hashCode → int
The hash code for this object.
no setterinherited
initPage → int?
initPage will take a int value representing the initial circle of requests. by default its is 1
final
itemPadding → EdgeInsetsGeometry?
padding for LoadMoreListData widget's items
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onInit → OnInit<T>
onInit is a required argument for the LoadMoreListData widget. It takes a function that will return OnInit OnInit can be FutureOr<Iterable<T>> This function will call on initState of LoadMoreListData's life cycle
final
onInitialLoading → Widget?
onInitialLoading is a widget that will display until the initial data is loaded
final
onLoad → OnLoad<T>
onLoad is a required argument for the LoadMoreListData widget. It takes a function that will return OnLoad OnLoad can be FutureOr<Iterable<T>> This function will call when the user reached to the end of the list of data
final
onLoadMoreLoading → Widget?
onLoadMoreLoading is a widget at end of the list that will display when waiting for a response on a pagination API request
final
onNoData → Widget?
onNoData is a widget that will have no more data to display
final
padding → EdgeInsetsGeometry?
padding for LoadMoreListData widget
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
topWidget → Widget?
you can pass an additional widget that will display on top of the list
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<LoadMoreListData<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, int wrapWidth = 65}) → 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