Scrollbar constructor Null safety

const Scrollbar(
  1. {Key? key,
  2. required Widget child,
  3. ScrollController? controller,
  4. bool? isAlwaysShown,
  5. bool? showTrackOnHover,
  6. double? hoverThickness,
  7. double? thickness,
  8. Radius? radius,
  9. ScrollNotificationPredicate? notificationPredicate,
  10. bool? interactive}
)

Creates a material design scrollbar that by default will connect to the closest Scrollable descendant of child.

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

If the controller is null, the default behavior is to enable scrollbar dragging using the PrimaryScrollController.

When null, thickness defaults to 8.0 pixels on desktop and web, and 4.0 pixels when on mobile platforms. A null radius will result in a default of an 8.0 pixel circular radius about the corners of the scrollbar thumb, except for when executing on TargetPlatform.android, which will render the thumb without a radius.

Implementation

const Scrollbar({
  Key? key,
  required this.child,
  this.controller,
  this.isAlwaysShown,
  this.showTrackOnHover,
  this.hoverThickness,
  this.thickness,
  this.radius,
  this.notificationPredicate,
  this.interactive,
}) : super(key: key);