Color class

Constructors

Color({double r = 0.0, double g = 0.0, double b = 0.0, double a = 1.0})
const
Color.FromHex(String hex)
factory
Color.FromHSV({double h = 0.0, double s = 0.0, double v = 0.0, double a = 1.0})
factory
Color.Gray(double gray, {double a = 1.0})
const

Properties

a double
final
b double
final
g double
final
hashCode int
The hash code for this object.
no setterinherited
r double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copy() Color
invertAndPreserve() Color
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toHSV() List<double>
toIntHSV() List<int>
toIntRGB() List<int>
toIntRGBA() List<int>
toList({bool withAlpha = true}) List<double>
toRGBAString() String
toRGBString() String
toString() String
A string representation of this object.
override
withTransparency(double a) Color
withValues({double? r, double? g, double? b, double? a}) Color

Operators

operator *(dynamic v) Color
operator +(dynamic v) Color
operator -(dynamic v) Color
operator /(dynamic v) Color
operator ==(Object other) bool
The equality operator.
inherited