ColorCodeField constructor
const
ColorCodeField({
- Key? key,
- required Color color,
- bool readOnly = false,
- required ValueChanged<
Color> onColorChanged, - required ValueChanged<
bool> onEditFocused, - TextStyle? textStyle,
- TextStyle? prefixStyle,
- bool colorCodeHasColor = false,
- ColorPickerActionButtons toolIcons = const ColorPickerActionButtons(),
- ColorPickerCopyPasteBehavior copyPasteBehavior = const ColorPickerCopyPasteBehavior(),
- bool enableTooltips = true,
- bool shouldUpdate = false,
Default const constructor.
Implementation
const ColorCodeField({
super.key,
required this.color,
this.readOnly = false,
required this.onColorChanged,
required this.onEditFocused,
this.textStyle,
this.prefixStyle,
this.colorCodeHasColor = false,
this.toolIcons = const ColorPickerActionButtons(),
this.copyPasteBehavior = const ColorPickerCopyPasteBehavior(),
this.enableTooltips = true,
this.shouldUpdate = false,
});