Color class

Constructors

Color([double r = 0.0, double g = 0.0, double b = 0.0, double a = 0.0])

Properties

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

Methods

add(double r, double g, double b, double a) → void
clamp() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(double r, double g, double b, double a) → void
setFromColor(Color c) → void
setFromString(String hex) → void
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

blue Color
final
green Color
final
magenta Color
final
red Color
final
white Color
final