CupertinoThumbPainter class

Paints an iOS-style slider thumb.

Used by CupertinoSwitch and CupertinoSlider.

Constructors

CupertinoThumbPainter({Color color: CupertinoColors.white, Color shadowColor: const Color(0x2C000000) })
Creates an object that paints an iOS-style slider thumb.

Properties

color Color
The color of the interior of the thumb.
final
shadowColor Color
The color of the shadow case by 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