trackShape property

SliderTrackShape? trackShape

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:


final SliderTrackShape? trackShape;