scrollVertical method

Widget scrollVertical(
  1. {Key key,
  2. ScrollController controller,
  3. ScrollPhysics physics,
  4. EdgeInsetsGeometry padding}
)

Extension method to directly access SingleChildScrollView vertically with any widget without wrapping or with dot operator.

Implementation

Widget scrollVertical(
        {Key key,
        ScrollController controller,
        ScrollPhysics physics,
        EdgeInsetsGeometry padding}) =>
    SingleChildScrollView(
        child: this,
        key: key,
        scrollDirection: Axis.vertical,
        controller: controller,
        physics: physics,
        padding: padding);