ColorPicker constructor

const ColorPicker({
  1. required ValueChanged<Color> onColorSelected,
  2. required Color selectedColor,
  3. required ColorPickerConfig config,
  4. required VoidCallback onClose,
  5. VoidCallback? onEyeDropper,
  6. VoidCallback? onKeyboard,
  7. ValueChanged<Set<Color>>? onSwatchesUpdate,
  8. Set<Color> swatches = const {},
  9. bool darkMode = false,
  10. Key? key,
})

Implementation

const ColorPicker({
  required this.onColorSelected,
  required this.selectedColor,
  required this.config,
  required this.onClose,
  this.onEyeDropper,
  this.onKeyboard,
  this.onSwatchesUpdate,
  this.swatches = const {},
  this.darkMode = false,
  Key? key,
}) : super(key: key);