GtdLoadMoreExtention class

A list view that can be used for incrementally loading items when the user scrolls. This is an extension of the ListView widget that uses the ListView.builder constructor.

Inheritance

Constructors

GtdLoadMoreExtention({Key? key, required HasMore hasMore, required LoadMore loadMore, int loadMoreOffsetFromBottom = 0, Axis scrollDirection = Axis.vertical, bool reverse = false, ScrollController? controller, bool? primary, ScrollPhysics? physics, bool shrinkWrap = false, EdgeInsetsGeometry? padding, double? itemExtent, required IndexedWidgetBuilder itemBuilder, required ItemCount itemCount, IndexedWidgetBuilder? separatorBuilder, bool addAutomaticKeepAlives = true, bool addRepaintBoundaries = true, double? cacheExtent, OnLoadMore? onLoadMore, OnLoadMoreFinished? onLoadMoreFinished})
const

Properties

addAutomaticKeepAlives bool
final
addRepaintBoundaries bool
final
cacheExtent double?
final
controller ScrollController?
final
hashCode int
The hash code for this object.
no setterinherited
hasMore HasMore
A callback that indicates if the collection associated with the ListView has more items that should be loaded
final
itemBuilder IndexedWidgetBuilder
final
itemCount ItemCount
final
itemExtent double?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loadMore LoadMore
A callback to an asynchronous function that would load more items
final
loadMoreOffsetFromBottom int
Determines when the list view should attempt to load more items based on of the index of the item is scrolling into view This is relative to the bottom of the list and has a default value of 0 so that it loads when the last item within the list view scrolls into view. As an example, setting this to 1 would attempt to load more items when the second last item within the list view scrolls into view
final
onLoadMore OnLoadMore?
A callback that is triggered when more items are being loaded
final
onLoadMoreFinished OnLoadMoreFinished?
A callback that is triggered when items have finished being loaded
final
padding EdgeInsetsGeometry?
final
physics ScrollPhysics?
final
primary bool?
final
reverse bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollDirection Axis
final
separatorBuilder IndexedWidgetBuilder?
final
shrinkWrap bool
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() GtdLoadMoreExtentionState
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