RoundThumbShape class

Constructors

RoundThumbShape({required double enabledThumbRadius, double? disabledThumbRadius, double elevation = 1.0, double pressedElevation = 6.0, required List<Color> gradientColors, required List<double> gradientStops})
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
elevation double
The resting elevation adds shadow to the unpressed thumb.
final
enabledThumbRadius double
The preferred radius of the round thumb shape when the slider is enabled.
final
gradientColors List<Color>
final
gradientStops List<double>
final
hashCode int
The hash code for this object.
no setterinherited
pressedElevation double
The pressed elevation adds shadow to the pressed thumb.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getPreferredSize(bool isEnabled) Size
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(PaintingContext context, Offset center, {required Animation<double> activationAnimation, required Animation<double> enableAnimation, required double value, required Size size, required Offset thumbCenter}) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

marginRingWidth → const double