xListVBCSP method

Widget xListVBCSP (
  1. {Key key,
  2. Axis scrollDirection = Axis.vertical,
  3. bool reverse = false,
  4. ScrollController controller,
  5. bool primary,
  6. EdgeInsetsGeometry padding,
  7. @required int itemCount,
  8. bool addAutomaticKeepAlives = true,
  9. bool addRepaintBoundaries = true,
  10. bool addSemanticIndexes = true,
  11. double cacheExtent,
  12. int semanticChildCount,
  13. DragStartBehavior dragStartBehavior = DragStartBehavior.start}
)

Implementation

Widget xListVBCSP({
  Key key,
  Axis scrollDirection = Axis.vertical,
  bool reverse = false,
  ScrollController controller,
  bool primary,
  EdgeInsetsGeometry padding,
  @required int itemCount,
  bool addAutomaticKeepAlives = true,
  bool addRepaintBoundaries = true,
  bool addSemanticIndexes = true,
  double cacheExtent,
  int semanticChildCount,
  DragStartBehavior dragStartBehavior = DragStartBehavior.start,
}) {
  return ListView.builder(
    itemBuilder: this,
    itemCount: itemCount,
    addAutomaticKeepAlives: addAutomaticKeepAlives,
    addRepaintBoundaries: addRepaintBoundaries,
    addSemanticIndexes: addSemanticIndexes,
    key: key,
    scrollDirection: scrollDirection,
    reverse: reverse,
    controller: controller,
    primary: primary,
    physics: ClampingScrollPhysics(),
    shrinkWrap: true,
    padding: padding,
    cacheExtent: cacheExtent,
    semanticChildCount: semanticChildCount ?? itemCount,
    dragStartBehavior: dragStartBehavior,
  );
}