CupertinoThumbPainter.switchThumb constructor

const CupertinoThumbPainter.switchThumb(
  1. {Color color = CupertinoColors.white,
  2. List<BoxShadow> shadows = _kSwitchBoxShadows}
)

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

Implementation

const CupertinoThumbPainter.switchThumb({
  Color color = CupertinoColors.white,
  List<BoxShadow> shadows = _kSwitchBoxShadows,
}) : this(color: color, shadows: shadows);