MiuixColorPicker constructor

const MiuixColorPicker({
  1. Key? key,
  2. required Color color,
  3. required ValueChanged<Color> onColorChanged,
  4. bool showPreview = true,
  5. MiuixSliderHapticEffect hapticEffect = MiuixSliderDefaults.defaultHapticEffect,
  6. MiuixColorSpace colorSpace = MiuixColorSpace.hsv,
})

Implementation

const MiuixColorPicker({
  super.key,
  required this.color,
  required this.onColorChanged,
  this.showPreview = true,
  this.hapticEffect = MiuixSliderDefaults.defaultHapticEffect,
  this.colorSpace = MiuixColorSpace.hsv,
});