LoadingMoreListConfig<T> class

Implementers

Constructors

LoadingMoreListConfig(LoadingMoreItemBuilder<T> itemBuilder, LoadingMoreBase<T> sourceList, {LoadingMoreIndicatorBuilder? indicatorBuilder, SliverGridDelegate? gridDelegate, bool autoLoadMore = true, ExtendedListDelegate? extendedListDelegate, LastChildLayoutType lastChildLayoutType = LastChildLayoutType.foot, bool autoRefresh = true, int? childCount, int childCountBuilder(int count)?, int getActualIndex(int int)?})
const

Properties

autoLoadMore bool
Whether to auto load more with the sourceList.
final
autoRefresh bool
Whether to auto refresh with the sourceList.
final
childCount int?
The total number of children this delegate can provide.
final
childCountBuilder → (int Function(int count)?)
The builder to get child count,the input is LoadingMoreBase.length.
final
extendedListDelegate ExtendedListDelegate?
The delegate for WaterfallFlow or ExtendedList.
final
getActualIndex → (int Function(int int)?)
return actual index
final
gridDelegate SliverGridDelegate?
Set the gridDelegate if the config is for a grid view.
final
hasError bool
no setter
hashCode int
The hash code for this object.
no setterinherited
hasMore bool
no setter
indicatorBuilder LoadingMoreIndicatorBuilder?
The builder for each IndicatorStatus.
final
isLoading bool
no setter
isSliver bool
no setter
itemBuilder LoadingMoreItemBuilder<T>
Builds widget from item and index.
final
lastChildLayoutType LastChildLayoutType
Layout type of last child.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceList LoadingMoreBase<T>
Source list based on the LoadingMoreBase.
final

Methods

buildContent(BuildContext context, Iterable<T>? source) Widget?
buildErrorItem(BuildContext context) Widget?
buildItem(BuildContext context, int index, Iterable<T> source) Widget
getExtendedListDelegate(int childCount, {bool showNoMore = true}) ExtendedListDelegate
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited