Color class

Constructors

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

Properties

a ↔ double
read / write
b ↔ double
read / write
g ↔ double
read / write
r ↔ double
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Static Properties

BLUE Color
final
GREEN Color
final
MAGENTA Color
final
RED Color
final
WHITE Color
final