CustomThumbShape class

Inheritance

Constructors

CustomThumbShape.new({dynamic onThumbSizeChange(double size)?, required double thumbSize, String text = '', Color borderColor = const Color(0xff656566), double borderWidth = 1.0})

Properties

borderColor Color
getter/setter pair
borderWidth double
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
onThumbSizeChange ↔ dynamic Function(double size)?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
getter/setter pair
thumbSize double
getter/setter pair

Methods

getPreferredSize(bool isEnabled, bool isDiscrete) Size
Returns the preferred size of the shape, based on the given conditions.
override
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 bool isDiscrete, required TextPainter labelPainter, required RenderBox parentBox, required SliderThemeData sliderTheme, required TextDirection textDirection, required double value, required double textScaleFactor, required Size sizeWithOverflow}) → void
Paints the shape, taking into account the state passed to it.
override
toString() String
A string representation of this object.
inherited

Operators

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