Scrollbar constructor

const Scrollbar({
  1. Key? key,
  2. required Widget child,
  3. ScrollController? controller,
  4. bool autofocus = false,
  5. FocusNode? focusNode,
  6. double minThumbLength = _kMinThumbExtent,
  7. bool isAlwaysShown = true,
  8. double? thickness,
  9. ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate,
})

Creates a desktop Scrollbar.

Implementation

const Scrollbar({
  super.key,
  required this.child,
  this.controller,
  this.autofocus = false,
  this.focusNode,
  this.minThumbLength = _kMinThumbExtent,
  this.isAlwaysShown = true,
  this.thickness,
  this.notificationPredicate = defaultScrollNotificationPredicate,
});