ColorWheelPicker constructor
const
ColorWheelPicker({
- Key? key,
- required Color color,
- required ValueChanged<
Color> onChanged, - ValueChanged<
Color> ? onChangeStart, - ValueChanged<
Color> ? onChangeEnd, - required ValueChanged<
bool> onWheel, - double wheelWidth = 16.0,
- double wheelSquarePadding = 0,
- double wheelSquareBorderRadius = 4,
- bool hasBorder = false,
- Color? borderColor,
- bool shouldUpdate = false,
- bool shouldRequestsFocus = false,
Default constructor for the color wheel picker.
Implementation
const ColorWheelPicker({
super.key,
required this.color,
required this.onChanged,
this.onChangeStart,
this.onChangeEnd,
required this.onWheel,
this.wheelWidth = 16.0,
this.wheelSquarePadding = 0,
this.wheelSquareBorderRadius = 4,
this.hasBorder = false,
this.borderColor,
this.shouldUpdate = false,
this.shouldRequestsFocus = false,
}) : assert(wheelWidth >= 4 && wheelWidth <= 50,
'The wheel width must be between 4 and 50dp');