SingleChildScrollView constructor

const SingleChildScrollView({Key key, Axis scrollDirection: Axis.vertical, bool reverse: false, EdgeInsetsGeometry padding, bool primary, ScrollPhysics physics, ScrollController controller, Widget child })

Creates a box in which a single widget can be scrolled.

Implementation

const SingleChildScrollView({
  Key key,
  this.scrollDirection = Axis.vertical,
  this.reverse = false,
  this.padding,
  bool primary,
  this.physics,
  this.controller,
  this.child,
}) : assert(scrollDirection != null),
     assert(!(controller != null && primary == true),
        'Primary ScrollViews obtain their ScrollController via inheritance from a PrimaryScrollController widget. '
        'You cannot both set primary to true and pass an explicit controller.'
     ),
     primary = primary ?? controller == null && identical(scrollDirection, Axis.vertical),
     super(key: key);