SuperListView constructor

SuperListView({
  1. Key? key,
  2. Axis scrollDirection = Axis.vertical,
  3. bool reverse = false,
  4. ScrollController? controller,
  5. bool? primary,
  6. ScrollPhysics? physics,
  7. bool shrinkWrap = false,
  8. EdgeInsetsGeometry? padding,
  9. bool addAutomaticKeepAlives = true,
  10. bool addRepaintBoundaries = true,
  11. bool addSemanticIndexes = true,
  12. double? cacheExtent,
  13. List<Widget> children = const <Widget>[],
  14. int? semanticChildCount,
  15. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  16. ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
  17. String? restorationId,
  18. Clip clipBehavior = Clip.hardEdge,
  19. ListController? listController,
  20. ExtentEstimationProvider? extentEstimation,
  21. ExtentPrecalculationPolicy? extentPrecalculationPolicy,
  22. bool delayPopulatingCacheArea = false,
})

Implementation

SuperListView({
  super.key,
  super.scrollDirection,
  super.reverse,
  super.controller,
  super.primary,
  super.physics,
  super.shrinkWrap,
  super.padding,
  bool addAutomaticKeepAlives = true,
  bool addRepaintBoundaries = true,
  bool addSemanticIndexes = true,
  super.cacheExtent,
  List<Widget> children = const <Widget>[],
  int? semanticChildCount,
  super.dragStartBehavior,
  super.keyboardDismissBehavior,
  super.restorationId,
  super.clipBehavior,
  this.listController,
  this.extentEstimation,
  this.extentPrecalculationPolicy,
  this.delayPopulatingCacheArea = false,
})  : childrenDelegate = SliverChildListDelegate(
        children,
        addAutomaticKeepAlives: addAutomaticKeepAlives,
        addRepaintBoundaries: addRepaintBoundaries,
        addSemanticIndexes: addSemanticIndexes,
      ),
      super(
        semanticChildCount: semanticChildCount ?? children.length,
      );