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
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