ScrollbarPainter constructor
Creates a scrollbar with customizations given by construction arguments.
Implementation
ScrollbarPainter({
@required this.color,
@required this.textDirection,
@required this.thickness,
@required this.fadeoutOpacityAnimation,
this.mainAxisMargin = 0.0,
this.crossAxisMargin = 0.0,
this.radius,
this.minLength = _kMinThumbExtent,
this.minOverscrollLength = _kMinThumbExtent,
}) : assert(color != null),
assert(textDirection != null),
assert(thickness != null),
assert(fadeoutOpacityAnimation != null),
assert(mainAxisMargin != null),
assert(crossAxisMargin != null),
assert(minLength != null) {
fadeoutOpacityAnimation.addListener(notifyListeners);
}