ColorPickerCopyFormat enum

Enum that controls the RGB string format of the copied color value.

When you copy a Color value from the color picker, this enum is used to configure the desired default format of the received RGB string.

If you have opacity enabled for the picker, the alpha value will not be included in the copied RGB string if you use a format that does not include the alpha value.

When you paste a color string value into the color picker, it can automatically parse a string from any of the available RGB strings formats to a Dart and Flutter Color object, regardless of what the copy format is. Additionally the pasted color value can be in the 3-char short RGB hex format, it will also be correctly parsed to its Color value, provided that ColorPickerCopyPasteBehavior.parseShortHexCode is true.

Inheritance

Constructors

ColorPickerCopyFormat()
const

Values

dartCode → const ColorPickerCopyFormat

In Flutter/Dart Hex RGB format '0xAARRGGBB'.

hexRRGGBB → const ColorPickerCopyFormat

Hex RGB format with no alpha 'RRGGBB'.

hexAARRGGBB → const ColorPickerCopyFormat

Hex RGB format with alpha 'AARRGGBB'.

numHexRRGGBB → const ColorPickerCopyFormat

Web Hex RGB format with leading num # sign and no alpha '#RRGGBB'.

numHexAARRGGBB → const ColorPickerCopyFormat

Web Hex RGB format with leading num # sign and alpha '#AARRGGBB'.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<ColorPickerCopyFormat>
A constant List of the values in this enum, in order of their declaration.