customColorSwatchesAndNames property

Map<ColorSwatch<Object>, String> customColorSwatchesAndNames
final

Color swatch to name map, with custom swatches and their names.

Used to provide custom ColorSwatch objects to the custom color picker, including their custom name label. These colors, their swatch shades and names, are shown and used when the picker type ColorPickerType.custom option is enabled in the color picker.

Defaults to an empty map. If the map is empty, the custom colors picker will not be shown even if it is enabled in pickersEnabled.

Implementation

final Map<ColorSwatch<Object>, String> customColorSwatchesAndNames;