Rainbow class

Constructors

Rainbow({Iterable<Color> spectrum = const [Color(0xFF000000), Color(0xFFFFFFFF)], dynamic rangeStart = 0.0, dynamic rangeEnd = 1.0})
Construct a new Rainbow

Properties

hashCode int
The hash code for this object.
no setteroverride
rangeEnd num
the range end
no setter
rangeStart num
the range start
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spectrum List<Color>
the gradient definition
no setter

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.
override
operator [](num number) Color
Return the interpolated color along the spectrum for domain item. If the number is outside the bounds of the domain, then the nearest edge color is returned.