DraggableScrollbar.custom constructor

const DraggableScrollbar.custom({
  1. Key? key,
  2. bool alwaysVisibleScrollThumb = false,
  3. required double heightScrollThumb,
  4. required Color backgroundColor,
  5. required ScrollThumbBuilder scrollThumbBuilder,
  6. required Widget child,
  7. required ScrollController controller,
  8. EdgeInsetsGeometry? padding,
  9. Duration scrollbarAnimationDuration = const Duration(milliseconds: 300),
  10. Duration scrollbarTimeToFade = const Duration(milliseconds: 600),
  11. LabelBuilder? labelBuilder,
  12. BoxConstraints? labelConstraints,
})

Implementation

const DraggableScrollbar.custom({
  super.key,
  this.alwaysVisibleScrollThumb = false,
  required this.heightScrollThumb,
  required this.backgroundColor,
  required this.scrollThumbBuilder,
  required this.child,
  required this.controller,
  this.padding,
  this.scrollbarAnimationDuration = const Duration(milliseconds: 300),
  this.scrollbarTimeToFade = const Duration(milliseconds: 600),
  this.labelBuilder,
  this.labelConstraints,
});