ListConfig<T> constructor
const
ListConfig<T> ({
- required LoadingMoreItemBuilder<
T> itemBuilder, - required LoadingMoreBase<
T> sourceList, - bool showGlowLeading = true,
- bool showGlowTrailing = true,
- LoadingMoreIndicatorBuilder? indicatorBuilder,
- SliverGridDelegate? gridDelegate,
- Axis scrollDirection = Axis.vertical,
- bool reverse = false,
- ScrollController? controller,
- bool? primary,
- ScrollPhysics? physics,
- bool shrinkWrap = false,
- EdgeInsetsGeometry padding = const EdgeInsets.all(0.0),
- double? itemExtent,
- int? itemCount,
- bool addAutomaticKeepAlives = true,
- bool addRepaintBoundaries = true,
- bool addSemanticIndexes = true,
- double? cacheExtent,
- int? semanticChildCount,
- bool autoLoadMore = true,
- ExtendedListDelegate? extendedListDelegate,
- LastChildLayoutType lastChildLayoutType = LastChildLayoutType.foot,
- bool autoRefresh = true,
- int itemCountBuilder(
- int count
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
- String? restorationId,
- Clip clipBehavior = Clip.hardEdge,
- int getActualIndex(
- int int
Implementation
const ListConfig({
required LoadingMoreItemBuilder<T> itemBuilder,
required LoadingMoreBase<T> sourceList,
this.showGlowLeading = true,
this.showGlowTrailing = true,
LoadingMoreIndicatorBuilder? indicatorBuilder,
SliverGridDelegate? gridDelegate,
this.scrollDirection = Axis.vertical,
this.reverse = false,
this.controller,
this.primary,
this.physics,
this.shrinkWrap = false,
this.padding = const EdgeInsets.all(0.0),
this.itemExtent,
int? itemCount,
this.addAutomaticKeepAlives = true,
this.addRepaintBoundaries = true,
this.addSemanticIndexes = true,
this.cacheExtent,
this.semanticChildCount,
bool autoLoadMore = true,
ExtendedListDelegate? extendedListDelegate,
LastChildLayoutType lastChildLayoutType = LastChildLayoutType.foot,
bool autoRefresh = true,
int Function(int count)? itemCountBuilder,
this.dragStartBehavior = DragStartBehavior.start,
this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
this.restorationId,
this.clipBehavior = Clip.hardEdge,
int Function(int int)? getActualIndex,
}) : super(
itemBuilder,
sourceList,
indicatorBuilder: indicatorBuilder,
gridDelegate: gridDelegate,
autoLoadMore: autoLoadMore,
lastChildLayoutType: lastChildLayoutType,
extendedListDelegate: extendedListDelegate,
autoRefresh: autoRefresh,
childCount: itemCount,
childCountBuilder: itemCountBuilder,
getActualIndex: getActualIndex,
);