ColorStop class final

A color and the position the color will be placed on a color ramp.

This object is used for creating custom color ramps.

Implemented types

Constructors

ColorStop({required Color color, required double position})
Creates a ColorStop
factory

Properties

color Color
The shaded color of a pixel with a value at ColorStop.position on the color ramp.
no setter
hashCode int
The hash code for this object.
no setterinherited
position double
The position the color will be placed on a color ramp. The value must be in the interval [0.0, 1.0].
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