HsvColorPicker constructor

const HsvColorPicker({
  1. Key? key,
  2. required HSVColor pickerColor,
  3. required ValueChanged<HSVColor> onColorChanged,
  4. PaletteType paletteType = PaletteType.hsv,
  5. bool enableAlpha = true,
  6. bool showLabel = true,
  7. TextStyle? labelTextStyle,
  8. bool displayThumbColor = false,
  9. double colorPickerWidth = 300.0,
  10. double pickerAreaHeightPercent = 1.0,
  11. BorderRadius pickerAreaBorderRadius = const BorderRadius.all(Radius.zero),
})

Implementation

const HsvColorPicker({
  Key? key,
  required this.pickerColor,
  required this.onColorChanged,
  this.paletteType = PaletteType.hsv,
  this.enableAlpha = true,
  this.showLabel = true,
  this.labelTextStyle,
  this.displayThumbColor = false,
  this.colorPickerWidth = 300.0,
  this.pickerAreaHeightPercent = 1.0,
  this.pickerAreaBorderRadius = const BorderRadius.all(Radius.zero),
}) : super(key: key);