CupertinoThumbPainter constructor

CupertinoThumbPainter({Color color: CupertinoColors.white, Color shadowColor: const Color(0x2C000000) })

Creates an object that paints an iOS-style slider thumb.

Implementation

CupertinoThumbPainter({
  this.color = CupertinoColors.white,
  this.shadowColor = const Color(0x2C000000),
}) : _shadowPaint = BoxShadow(
       color: shadowColor,
       blurRadius: 1.0,
     ).toPaint();