trackShape property Null safety

SliderTrackShape? trackShape
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:

Implementation

final SliderTrackShape? trackShape;