Rainbow class Null safety

Maps a domain of numbers within a specified range onto a smooth-transitioning color space.

Annotations

Constructors

Rainbow({List<String> spectrum = const ['000000', 'ffffff'], dynamic rangeStart = 0.0, dynamic rangeEnd = 1.0})
Construct a new Rainbow [...]

Properties

hashCode int
The hash code for this object. [...]
read-only, override
rangeEnd num
the range end
read-only
rangeStart num
the range start
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
spectrum List<String>
the gradient definition
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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) String
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.