Scrollbar constructor

const Scrollbar(
  1. {Key key,
  2. @required Widget child,
  3. ScrollController controller,
  4. bool isAlwaysShown: false}

Creates a material design scrollbar that wraps the given child.

The child should be a source of ScrollNotification notifications, typically a Scrollable widget.


const Scrollbar({
  Key key,
  @required this.child,
  this.isAlwaysShown = false,
}) : assert(!isAlwaysShown || controller != null, 'When isAlwaysShown is true, must pass a controller that is attached to a scroll view'),
     super(key: key);