ColorWheelPicker constructor

const ColorWheelPicker({
  1. Key? key,
  2. required Color color,
  3. required ValueChanged<Color> onChanged,
  4. ValueChanged<Color>? onChangeStart,
  5. ValueChanged<Color>? onChangeEnd,
  6. required ValueChanged<bool> onWheel,
  7. double wheelWidth = 16.0,
  8. double wheelSquarePadding = 0,
  9. double wheelSquareBorderRadius = 4,
  10. bool hasBorder = false,
  11. Color? borderColor,
  12. bool shouldUpdate = false,
  13. 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');