CupertinoThumbPainter class

Paints an iOS-style slider thumb or switch thumb.

Used by CupertinoSwitch and 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
shadows List<BoxShadow>
The list of BoxShadow to paint below the thumb. [...]
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

paint(Canvas canvas, Rect rect) → void
Paints the thumb onto the given canvas in the given rectangle. [...]
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

Constants

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