OColorPicker constructor
const
OColorPicker({
- Key? key,
- List<
ColorSwatch> colors = primaryColorsPalette, - required Color? selectedColor,
- required ValueChanged<
Color> ? onColorChange, - List<
Color> excludedColors = const [], - double spacing = 9.0,
- Size boxSize = const Size(40.0, 40.0),
- OColorBoxBorder boxBorder = const OColorBoxBorder(),
Creates an instance of OColorPicker
Implementation
const OColorPicker({
Key? key,
this.colors = primaryColorsPalette,
required this.selectedColor,
required this.onColorChange,
this.excludedColors = const [],
this.spacing = 9.0,
this.boxSize = const Size(40.0, 40.0),
this.boxBorder = const OColorBoxBorder(),
}) : super(key: key);