ColorConverter class
A class for converting between color spaces.
Constructors
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
-
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
Static Methods
-
color2hex(
Color color) → String - Converts a Flutter Color object to a hex string.
-
color2hsl(
Color color) → List< double> - Converts a Flutter Color object to HSL values.
-
color2hsv(
Color color) → List< double> - Converts a Flutter Color object to HSV values.
-
color2int(
Color color) → int - Converts a Flutter Color object to an integer.
-
color2rgb(
Color color) → List< int> - Converts a Flutter Color object to RGB values.
-
color2xy(
Color color) → List< double> - Converts a Flutter Color object to xy coordinates in the CIE 1931 color space.
-
hex2color(
dynamic hex) → Color - Converts a hex string to a Flutter Color object.
-
hex2hsl(
dynamic hex) → List< double> - Converts a hex string to HSL values.
-
hex2hsv(
dynamic hex) → List< double> - Converts a hex string to HSV values.
-
hex2int(
dynamic hex) → int - Converts a hex string to an integer.
-
hex2rgb(
dynamic hex) → List< int> - Converts a hex string to RGB values.
-
hex2xy(
dynamic hex) → List< double> - Converts a hex string to xy coordinates in the CIE 1931 color space.
-
hsl2color(
int h, double s, double l) → Color - Converts HSL values to a Flutter Color object.
-
hsl2hex(
int h, double s, double l) → String - Converts HSL values to a hex string.
-
hsl2hsv(
int h, double s, double l) → List< double> - Converts HSL values to HSV values.
-
hsl2int(
int h, double s, double l) → int - Converts HSL values to an integer.
-
hsl2rgb(
int h, double s, double l) → List< int> - Converts HSL values to RGB values.
-
hsl2xy(
int h, double s, double l) → List< double> - Converts HSL values to xy coordinates in the CIE 1931 color space.
-
hsv2color(
int h, double s, double v) → Color - Converts HSV values to a Flutter Color object.
-
hsv2hex(
int h, double s, double v) → String - Converts HSV values to a hex string.
-
hsv2hsl(
int h, double s, double v) → List< double> - Converts HSV values to HSL values.
-
hsv2int(
int h, double s, double v) → int - Converts HSV values to an integer.
-
hsv2rgb(
int h, double s, double v) → List< int> - Converts HSV values to RGB values.
-
hsv2xy(
int h, double s, double v) → List< double> - Converts HSV values to xy coordinates in the CIE 1931 color space.
-
int2color(
int integer) → Color - Converts an integer to a Flutter Color object.
-
int2hex(
int integer) → String - Converts an integer to a hex string.
-
int2hsl(
int integer) → List< double> - Converts an integer to HSL values.
-
int2hsv(
int integer) → List< double> - Converts an integer to HSV values.
-
int2rgb(
int integer) → List< int> - Converts an integer to RGB values.
-
int2xy(
int integer) → List< double> - Converts an integer to xy coordinates in the CIE 1931 color space.
-
rgb2color(
int r, int g, int b) → Color - Converts RGB values to a Flutter Color object.
-
rgb2hex(
int r, int g, int b) → String - Converts RGB values to a hex string.
-
rgb2hsl(
int r, int g, int b) → List< double> - Converts RGB values to HSL values.
-
rgb2hsv(
int r, int g, int b) → List< double> - Converts RGB values to HSV values.
-
rgb2int(
int r, int g, int b) → int - Converts RGB values to an integer.
-
rgb2xy(
int r, int g, int b) → List< double> - Converts RGB values to xy coordinates in the CIE 1931 color space.
-
xy2color(
double x, double y) → Color - Converts xy coordinates in the CIE 1931 color space to a Flutter Color.
-
xy2hex(
double x, double y) → String - Converts xy coordinates in the CIE 1931 color space to a hex string.
-
xy2hsl(
double x, double y) → List< double> - Converts xy coordinates in the CIE 1931 color space to HSL.
-
xy2hsv(
double x, double y) → List< double> - Converts xy coordinates in the CIE 1931 color space to HSV.
-
xy2int(
double x, double y) → int - Converts xy coordinates in the CIE 1931 color space to an integer.
-
xy2rgb(
double x, double y, [double brightness = 1.0]) → List< int> - Converts xy coordinates in the CIE 1931 color space to RGB.