ColorPicker constructor

const ColorPicker({
  1. Key? key,
  2. required String title,
  3. required String? selectedColorHex,
  4. required void onSubmittedColorHex(
    1. String? color
    ),
  5. required List<ColorOption> colorOptions,
  6. String? resetText,
  7. String? resetIconName,
  8. bool showClearButton = false,
})

Implementation

const ColorPicker({
  super.key,
  required this.title,
  required this.selectedColorHex,
  required this.onSubmittedColorHex,
  required this.colorOptions,
  this.resetText,
  this.resetIconName,
  this.showClearButton = false,
});