CupertinoThumbPainter class

Paints an iOS-style slider thumb or switch thumb.

Used by CupertinoSlider.

Constructors

CupertinoThumbPainter({Color color = CupertinoColors.white, List<BoxShadow> shadows = _kSliderBoxShadows})
Creates an object that paints an iOS-style slider thumb.
const
CupertinoThumbPainter.switchThumb({Color color = CupertinoColors.white, List<BoxShadow> shadows = _kSwitchBoxShadows})
Creates an object that paints an iOS-style switch thumb.
const

Properties

color Color
The color of the interior of the thumb.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadows List<BoxShadow>
The list of BoxShadow to paint below the thumb.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(Canvas canvas, Rect rect) → void
Paints the thumb onto the given canvas in the given rectangle.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

extension → const double
The default amount the thumb should be extended horizontally when pressed.
radius → const double
Half the default diameter of the thumb.