DraggableScrollbar.rrect constructor

DraggableScrollbar.rrect({
  1. Key? key,
  2. Key? scrollThumbKey,
  3. bool alwaysVisibleScrollThumb = false,
  4. required BoxScrollView child,
  5. required ScrollController controller,
  6. double heightScrollThumb = 48.0,
  7. Color backgroundColor = Colors.white,
  8. EdgeInsetsGeometry? padding,
  9. Duration scrollbarAnimationDuration = const Duration(milliseconds: 300),
  10. Duration scrollbarTimeToFade = const Duration(milliseconds: 600),
  11. LabelTextBuilder? labelTextBuilder,
  12. BoxConstraints? labelConstraints,
})

Implementation

DraggableScrollbar.rrect({
  Key? key,
  Key? scrollThumbKey,
  this.alwaysVisibleScrollThumb = false,
  required this.child,
  required this.controller,
  this.heightScrollThumb = 48.0,
  this.backgroundColor = Colors.white,
  this.padding,
  this.scrollbarAnimationDuration = const Duration(milliseconds: 300),
  this.scrollbarTimeToFade = const Duration(milliseconds: 600),
  this.labelTextBuilder,
  this.labelConstraints,
})  : assert(child.scrollDirection == Axis.vertical),
      scrollThumbBuilder =
          _thumbRRectBuilder(scrollThumbKey, alwaysVisibleScrollThumb),
      super(key: key);