xListViewVerticalClampingScrollPhysics method

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

Implementation

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