scrollable method

Widget scrollable({
  1. Axis scrollDirection = Axis.vertical,
  2. bool reverse = false,
  3. EdgeInsetsGeometry? padding,
  4. bool? primary,
  5. ScrollPhysics? physics,
  6. ScrollController? controller,
  7. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  8. Clip clipBehavior = Clip.hardEdge,
  9. String? restorationId,
  10. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
})

Wraps this widget in a SingleChildScrollView.

Implementation

Widget scrollable({
  Axis scrollDirection = Axis.vertical,
  bool reverse = false,
  EdgeInsetsGeometry? padding,
  bool? primary,
  ScrollPhysics? physics,
  ScrollController? controller,
  DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  Clip clipBehavior = Clip.hardEdge,
  String? restorationId,
  ScrollViewKeyboardDismissBehavior keyboardDismissBehavior =
      ScrollViewKeyboardDismissBehavior.manual,
}) {
  return SingleChildScrollView(
    scrollDirection: scrollDirection,
    reverse: reverse,
    padding: padding,
    primary: primary,
    physics: physics,
    controller: controller,
    dragStartBehavior: dragStartBehavior,
    clipBehavior: clipBehavior,
    restorationId: restorationId,
    keyboardDismissBehavior: keyboardDismissBehavior,
    child: this,
  );
}