ColorButton constructor
const
ColorButton({
- required Color color,
- required ValueChanged<
Color> onColorChanged, - ValueChanged<
Set< ? onSwatchesChanged,Color> > - double elevation = 3,
- BoxDecoration? decoration,
- ColorPickerConfig config = const ColorPickerConfig(),
- bool darkMode = false,
- double size = _buttonSize,
- BoxShape boxShape = BoxShape.circle,
- Set<
Color> swatches = const {}, - 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);