OColorPicker constructor

const OColorPicker({
  1. Key? key,
  2. List<ColorSwatch> colors = primaryColorsPalette,
  3. required Color? selectedColor,
  4. required ValueChanged<Color>? onColorChange,
  5. List<Color> excludedColors = const [],
  6. double spacing = 9.0,
  7. Size boxSize = const Size(40.0, 40.0),
  8. 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);