trackShape property
final
The shape that will be used to draw the Slider's track.
The SliderTrackShape.getPreferredRect method is used to map slider-relative gesture coordinates to the correct thumb position on the track. It is also used to horizontally position tick marks, when the slider is discrete.
The default value is RoundedRectSliderTrackShape.
See also:
- RoundedRectRangeSliderTrackShape, which is the default track shape for the RangeSlider.
Implementation
final SliderTrackShape? trackShape;