ScrollTrack constructor

const ScrollTrack({
  1. Key? key,
  2. Duration jumpDuration = const Duration(milliseconds: 200),
  3. Curve jumpCurve = Curves.easeInOut,
  4. ValueChanged<bool>? isDraggingChanged,
  5. required Widget child,
})

Creates a scrollbar track with gesture handling.

The child parameter is required. The jumpDuration and jumpCurve control the animation when jumping to a tapped position.

Implementation

const ScrollTrack({
  super.key,
  this.jumpDuration = const Duration(milliseconds: 200),
  this.jumpCurve = Curves.easeInOut,
  this.isDraggingChanged,
  required this.child,
});