RoundRangeSliderThumbShape class

The default shape of a RangeSlider's thumbs.

See also:

  • RangeSlider, which includes thumbs defined by this shape.
  • SliderTheme, which can be used to configure the thumb shapes of all range sliders in a widget subtree.
Inheritance

Constructors

RoundRangeSliderThumbShape({double enabledThumbRadius: 10.0 double disabledThumbRadius })
Create a slider thumb that draws a circle.
const

Properties

disabledThumbRadius double
The preferred radius of the round thumb shape when the slider is disabled. [...]
final
enabledThumbRadius double
The preferred radius of the round thumb shape when the slider is enabled. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getPreferredSize(bool isEnabled bool isDiscrete) Size
Returns the preferred size of the shape, based on the given conditions. [...]
override
paint(PaintingContext context, Offset center, { Animation<double> activationAnimation, Animation<double> enableAnimation, bool isDiscrete: false, bool isEnabled: false, bool isOnTop, SliderThemeData sliderTheme, TextDirection textDirection, Thumb thumb }) → void
Paints the thumb shape based on the state passed to it. [...]
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited