ColorParser class
class to parse the color and get the color value using different approaches such as RGB, HEX etc. inspired from the JS https://www.w3schools.com/lib/w3color.js
Constructors
- ColorParser.argb(int a, int r, int g, int b)
- create a object of this class using the ARGB values
- ColorParser.color(Color color)
- get the object of this class using material color
- ColorParser.hex(String hexCode)
- get the object of this class using hex color code
- ColorParser.rgb(int r, int g, int b)
- create a object of this class using the RGB values
- ColorParser.rgbo(int r, int g, int b, double o)
- create a object of this class using the RGBO values
- ColorParser.value(int value)
- get the object of this class using int value of color
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getColor(
) → Color? - get the Color
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toCMYK(
) → List< num?> - getCMYK
-
toCMYKA(
) → List< num?> - get CMYK with alpha
-
toCMYKDecimal(
) → String - CMYK string decimal
-
toCMYKString(
) → String - CMYK string
-
toHex(
) → String - hex string
-
toHSL(
) → List< num?> - get HSL
-
toHSLA(
) → List< num?> - get HSL with alpha
-
toHSLAString(
) → String - HSL string with alpha
-
toHSLDecimal(
) → String - HSL string decimal
-
toHSLString(
) → String - HSL string
-
toHWB(
) → List< num?> - get HWB
-
toHWBA(
) → List< num?> - get HWB with alpha
-
toHWBAString(
) → String - HWB string with alpha
-
toHWBDecimal(
) → String - HWB string decimal
-
toHWBString(
) → String - HWB string
-
toName(
) → String? - get color name
-
toNcol(
) → List - get NCOL
-
toNcolA(
) → List - get NCOL with alpha
-
toNcolAString(
) → String - NCOL string with alpha
-
toNcolDecimal(
) → String - NCOL string decimal
-
toNcolString(
) → String - NCOL string
-
toRGB(
) → List< int> - get RGB
-
toRGBA(
) → List< int> - get RGB with alpha
-
toRGBAString(
) → String - RGB string with alpha
-
toRGBString(
) → String - RGB string
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited