ScrollbarPainter constructor

ScrollbarPainter({@required Color color, @required TextDirection textDirection, @required double thickness, @required Animation<double> fadeoutOpacityAnimation, double mainAxisMargin: 0.0, double crossAxisMargin: 0.0, Radius radius, double minLength: _kMinThumbExtent, double minOverscrollLength: _kMinThumbExtent })

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);
}