Rainbow class
Constructors
Rainbow ({Iterable <Color > spectrum = const [Color(0xFF000000), Color(0xFFFFFFFF)] , dynamic rangeStart = 0.0 , dynamic rangeEnd = 1.0 })
Construct a new Rainbow
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.