Scrollbar constructor

const Scrollbar({
  1. Key? key,
  2. required Widget child,
  3. ScrollController? controller,
  4. bool isAlwaysShown = true,
  5. ScrollbarThemeData? style,
})

Creates a fluent-styled scrollbar that wraps the given child.

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

The child, thickness, thumbColor, isAlwaysShown, fadeDuration, and timeToFade arguments must not be null.

Implementation

const Scrollbar({
  Key? key,
  required Widget child,
  this.controller,
  this.isAlwaysShown = true,
  this.style,
}) : super(key: key, child: child);