colorCodeReadOnly property Null safety

bool colorCodeReadOnly

When true, the color code field is always read only.

If set to true, the color code field cannot be edited. Normally it can be edited when used in a picker that can select and show any color. Setting this to false makes it read only also on such pickers. This currently only applies to the wheel picker, but will also apply to future full color range pickers.

Pickers that only offer a fixed palette, that you can just offered colors from always have the color code field in read only mode, this setting does not affect them.

Regardless of the picker and colorCodeReadOnly value, you can change color value by pasting in a new value, if your copy paste configuration allows it.

Defaults to false.


final bool colorCodeReadOnly;