colorCodeHasColor property Null safety

bool colorCodeHasColor

When true, the color code entry field uses the currently selected color as its background color.

This makes the color code entry field a large current color indicator area, that changes color as the color value is changed. The text color of the field, will automatically adjust for best contrast, as will the opacity indicator text. Enabling this feature will override any color specified in colorCodeTextStyle and colorCodePrefixStyle, but their styles will otherwise be kept as specified.

Defaults to false.


final bool colorCodeHasColor;