ColorButton constructor

const ColorButton({
  1. required Color color,
  2. required ValueChanged<Color> onColorChanged,
  3. ValueChanged<Set<Color>>? onSwatchesChanged,
  4. double elevation = 3,
  5. BoxDecoration? decoration,
  6. ColorPickerConfig config = const ColorPickerConfig(),
  7. bool darkMode = false,
  8. double size = _buttonSize,
  9. BoxShape boxShape = BoxShape.circle,
  10. Set<Color> swatches = const {},
  11. Key? key,
})

Implementation

const ColorButton({
  required this.color,
  required this.onColorChanged,
  this.onSwatchesChanged,
  this.elevation = 3,
  this.decoration,
  this.config = const ColorPickerConfig(),
  this.darkMode = false,
  this.size = _buttonSize,
  this.boxShape = BoxShape.circle,
  this.swatches = const {},
  Key? key,
}) : super(key: key);