scrollable method

Widget scrollable({
  1. ScrollPhysics? physics,
  2. bool reverse = false,
  3. ScrollController? controller,
  4. Axis scrollDirection = Axis.vertical,
})

Wraps widget with SingleChildScrollView

Implementation

Widget scrollable({
  ScrollPhysics? physics,
  bool reverse = false,
  ScrollController? controller,
  Axis scrollDirection = Axis.vertical,
}) {
  return SingleChildScrollView(
    physics: physics,
    reverse: reverse,
    controller: controller,
    scrollDirection: scrollDirection,
    child: this,
  );
}