withScroll method

  1. @deprecated
Widget withScroll({
  1. ScrollPhysics? physics,
  2. EdgeInsetsGeometry? padding,
  3. Axis scrollDirection = Axis.vertical,
  4. ScrollController? controller,
  5. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  6. bool? primary,
  7. required bool reverse,
})

Implementation

@deprecated
Widget withScroll({
  ScrollPhysics? physics,
  EdgeInsetsGeometry? padding,
  Axis scrollDirection = Axis.vertical,
  ScrollController? controller,
  DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  bool? primary,
  required bool reverse,
}) {
  return SingleChildScrollView(
    child: this,
    physics: physics,
    padding: padding,
    scrollDirection: scrollDirection,
    controller: controller,
    dragStartBehavior: dragStartBehavior,
    primary: primary,
    reverse: reverse,
  );
}