MacosColorWell constructor

const MacosColorWell({
  1. Key? key,
  2. required OnColorSelected onColorSelected,
  3. ColorPickerMode defaultMode = ColorPickerMode.wheel,
})

A control that displays a color value and lets the user change that color value.

When a MacosColorWell is clicked, it opens the native macOS color panel, which is an NSColorPanel from the Swift Cocoa library.

Use a MacosColorWell when you want the user to be able to select a color.

Implementation

const MacosColorWell({
  super.key,
  required this.onColorSelected,
  this.defaultMode = ColorPickerMode.wheel,
});