Scrollbar constructor
Scrollbar({
- required Widget child,
- required ScrollController controller,
- Style? trackStyle,
- Style? thumbStyle,
- ScrollbarGradient? trackGradient,
- ScrollbarGradient? thumbGradient,
- bool trackUsesBackground = false,
- bool thumbUsesBackground = false,
- String trackChar = '│',
- String thumbChar = '█',
- int thickness = 1,
- int? gutterWidth,
- bool roundedCaps = false,
- String? thumbCapTopChar,
- String? thumbCapBottomChar,
- bool enableHover = false,
- Style? hoverTrackStyle,
- Style? hoverThumbStyle,
- ScrollbarGradient? hoverTrackGradient,
- ScrollbarGradient? hoverThumbGradient,
- String? hoverTrackChar,
- String? hoverThumbChar,
- bool overlay = false,
- int gap = 0,
- int mouseWheelDelta = 3,
- bool enableDrag = true,
- String? zoneId,
- 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,
});