thumbSize property

double thumbSize
final

The thumb's size, inclusive of . Defaults to 25 on touch platforms and 20 on non-touch platforms.

Contract

Throws AssertionError if thumbSize is not positive.

Implementation details

This unfortunately has to be placed outside of FSliderThumbStyle because FSliderThumbStyle is inside FSliderStateStyle. Putting the thumb size inside FSliderThumbStyle will cause a cyclic rebuild to occur whenever the window is resized due to some bad interaction between an internal LayoutBuilder and SliderFormField.

Implementation

final double thumbSize;