Color class

Represents a color in RGBA space.

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

Color(num red, num green, num blue, num alpha)
factory

Properties

alpha num

Available on Color, provided by the Color$Typings extension

The alpha component of this color in the range 0-1.
no setter
blue num

Available on Color, provided by the Color$Typings extension

The blue component of this color in the range 0-1.
no setter
green num

Available on Color, provided by the Color$Typings extension

The green component of this color in the range 0-1.
no setter
hashCode int
The hash code for this object.
no setterinherited
red num

Available on Color, provided by the Color$Typings extension

The red component of this color in the range 0-1.
no setter
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