Scrollbar constructor

Scrollbar({
  1. required Widget child,
  2. required ScrollController controller,
  3. Style? trackStyle,
  4. Style? thumbStyle,
  5. ScrollbarGradient? trackGradient,
  6. ScrollbarGradient? thumbGradient,
  7. bool trackUsesBackground = false,
  8. bool thumbUsesBackground = false,
  9. String trackChar = '│',
  10. String thumbChar = '█',
  11. int thickness = 1,
  12. int? gutterWidth,
  13. bool roundedCaps = false,
  14. String? thumbCapTopChar,
  15. String? thumbCapBottomChar,
  16. bool enableHover = false,
  17. Style? hoverTrackStyle,
  18. Style? hoverThumbStyle,
  19. ScrollbarGradient? hoverTrackGradient,
  20. ScrollbarGradient? hoverThumbGradient,
  21. String? hoverTrackChar,
  22. String? hoverThumbChar,
  23. bool overlay = false,
  24. int gap = 0,
  25. int mouseWheelDelta = 3,
  26. bool enableDrag = true,
  27. String? zoneId,
  28. Key? key,
})

Implementation

Scrollbar({
  required this.child,
  required this.controller,
  this.trackStyle,
  this.thumbStyle,
  this.trackGradient,
  this.thumbGradient,
  this.trackUsesBackground = false,
  this.thumbUsesBackground = false,
  this.trackChar = '│',
  this.thumbChar = '█',
  this.thickness = 1,
  this.gutterWidth,
  this.roundedCaps = false,
  this.thumbCapTopChar,
  this.thumbCapBottomChar,
  this.enableHover = false,
  this.hoverTrackStyle,
  this.hoverThumbStyle,
  this.hoverTrackGradient,
  this.hoverThumbGradient,
  this.hoverTrackChar,
  this.hoverThumbChar,
  this.overlay = false,
  this.gap = 0,
  this.mouseWheelDelta = 3,
  this.enableDrag = true,
  this.zoneId,
  super.key,
});