CupertinoThumbPainter class Null safety

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
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
shadows List<BoxShadow>
The list of BoxShadow to paint below the thumb.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.
7.0
radius → const double
Half the default diameter of the thumb.
14.0