SliverListConfig<T> class

Inheritance

Constructors

SliverListConfig({required Widget itemBuilder(BuildContext context, T item, int index), required LoadingMoreBase<T> sourceList, LoadingMoreIndicatorBuilder? indicatorBuilder, SliverGridDelegate? gridDelegate, bool addAutomaticKeepAlives = true, bool addRepaintBoundaries = true, bool addSemanticIndexes = true, SemanticIndexCallback semanticIndexCallback = _kDefaultSemanticIndexCallback, int semanticIndexOffset = 0, int? childCount, bool autoLoadMore = true, ExtendedListDelegate? extendedListDelegate, LastChildLayoutType lastChildLayoutType = LastChildLayoutType.foot, EdgeInsetsGeometry? padding, double? itemExtent, bool autoRefresh = true, int childCountBuilder(int count)?, int getActualIndex(int int)?})

Properties

addAutomaticKeepAlives bool
final
addRepaintBoundaries bool
final
addSemanticIndexes bool
final
autoLoadMore bool
finalinherited
autoRefresh bool
finalinherited
childCount int?
The total number of children this delegate can provide.
finalinherited
childCountBuilder → (int Function(int count)?)
The builder to get child count,the input is sourceList.length
finalinherited
extendedListDelegate ExtendedListDelegate?
The delegate for WaterfallFlow or ExtendedList.
finalinherited
getActualIndex → (int Function(int int)?)
finalinherited
gridDelegate SliverGridDelegate?
finalinherited
hasError bool
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasMore bool
no setterinherited
indicatorBuilder LoadingMoreIndicatorBuilder?
finalinherited
isLoading bool
no setterinherited
isSliver bool
no setterinherited
itemBuilder Widget Function(BuildContext context, T item, int index)
finalinherited
itemExtent double?
If non-null, forces the children to have the given extent in the scroll direction.
final
lastChildLayoutType LastChildLayoutType
Layout type of last child
finalinherited
padding EdgeInsetsGeometry?
The amount of space by which to inset the child sliver.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semanticIndexCallback SemanticIndexCallback
final
semanticIndexOffset int
final
showNoMore bool
getter/setter pair
sourceList LoadingMoreBase<T>
finalinherited

Methods

buildContent(BuildContext context, LoadingMoreBase<T>? source) Widget
override
buildErrorItem(BuildContext context) Widget?
inherited
buildItem(BuildContext context, int index) Widget
inherited
getExtendedListDelegate(int childCount, {bool showNoMore = true}) ExtendedListDelegate
inherited
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