ListConfig<T> constructor

const ListConfig<T>({
  1. required LoadingMoreItemBuilder<T> itemBuilder,
  2. required LoadingMoreBase<T> sourceList,
  3. bool showGlowLeading = true,
  4. bool showGlowTrailing = true,
  5. LoadingMoreIndicatorBuilder? indicatorBuilder,
  6. SliverGridDelegate? gridDelegate,
  7. Axis scrollDirection = Axis.vertical,
  8. bool reverse = false,
  9. ScrollController? controller,
  10. bool? primary,
  11. ScrollPhysics? physics,
  12. bool shrinkWrap = false,
  13. EdgeInsetsGeometry padding = const EdgeInsets.all(0.0),
  14. double? itemExtent,
  15. int? itemCount,
  16. bool addAutomaticKeepAlives = true,
  17. bool addRepaintBoundaries = true,
  18. bool addSemanticIndexes = true,
  19. double? cacheExtent,
  20. int? semanticChildCount,
  21. bool autoLoadMore = true,
  22. ExtendedListDelegate? extendedListDelegate,
  23. LastChildLayoutType lastChildLayoutType = LastChildLayoutType.foot,
  24. bool autoRefresh = true,
  25. int itemCountBuilder(
    1. int count
    )?,
  26. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  27. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  28. String? restorationId,
  29. Clip clipBehavior = Clip.hardEdge,
  30. int getActualIndex(
    1. 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,
      );