customColorSwatchesAndNames property Null safety

Map<ColorSwatch<Object>, String> customColorSwatchesAndNames

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.


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