toScrollableView method

Widget toScrollableView({
  1. Axis? direction,
  2. bool scrollable = true,
  3. ScrollController? controller,
  4. ScrollPhysics? scrollPhysics,
  5. Key? key,
})

Implementation

Widget toScrollableView({
  Axis? direction,
  bool scrollable = true,
  ScrollController? controller,
  ScrollPhysics? scrollPhysics,
  Key? key,
}) =>
    SingleChildScrollView(
      key: key,
      scrollDirection: direction ?? Axis.vertical,
      physics: !scrollable ? const NeverScrollableScrollPhysics() : scrollPhysics,
      controller: controller,
      child: this,
    );