scrollable method

SingleChildScrollView scrollable({
  1. Axis direction = Axis.vertical,
})

Implementation

SingleChildScrollView scrollable({Axis direction = Axis.vertical}) {
  return SingleChildScrollView(
    scrollDirection: direction,
    child: direction == Axis.vertical ? Column(children: [...this]) : Row(children: [...this]),
  );
}