CupertinoThumbPainter constructor Null safety

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

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

Implementation

const CupertinoThumbPainter({
  this.color = CupertinoColors.white,
  this.shadows = _kSliderBoxShadows,
}) : assert(shadows != null);