SliverListConfig<T> constructor
SliverListConfig<T> ({
- required LoadingMoreItemBuilder<
T> itemBuilder, - 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
- bool? showNoMore,
- bool? lock,
Implementation
SliverListConfig({
required LoadingMoreItemBuilder<T> itemBuilder,
required LoadingMoreBase<T> sourceList,
LoadingMoreIndicatorBuilder? indicatorBuilder,
SliverGridDelegate? gridDelegate,
this.addAutomaticKeepAlives = true,
this.addRepaintBoundaries = true,
this.addSemanticIndexes = true,
this.semanticIndexCallback = _kDefaultSemanticIndexCallback,
this.semanticIndexOffset = 0,
int? childCount,
bool autoLoadMore = true,
ExtendedListDelegate? extendedListDelegate,
LastChildLayoutType lastChildLayoutType = LastChildLayoutType.foot,
this.padding,
this.itemExtent,
bool autoRefresh = true,
int Function(int count)? childCountBuilder,
int Function(int int)? getActualIndex,
this.showNoMore,
this.lock,
}) : super(
itemBuilder,
sourceList,
indicatorBuilder: indicatorBuilder,
gridDelegate: gridDelegate,
autoLoadMore: autoLoadMore,
extendedListDelegate: extendedListDelegate,
lastChildLayoutType: lastChildLayoutType,
autoRefresh: autoRefresh,
childCount: childCount,
childCountBuilder: childCountBuilder,
getActualIndex: getActualIndex,
);