HeatmapGradient class

Represents a mapping of intensity to color.

Interpolates between given set of intensity and color values to produce a full mapping for the range 0, 1.

Annotations

Constructors

HeatmapGradient(List<HeatmapGradientColor> colors, {int colorMapSize = 256})
Creates a new HeatmapGradient object.
const

Properties

colorMapSize int
Number of entries in the generated color map.
final
colors List<HeatmapGradientColor>
The gradient colors.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clone() HeatmapGradient
Creates a new HeatmapGradient object whose values are the same as this instance.
copyWith({List<HeatmapGradientColor>? colorsParam, int? colorMapSizeParam}) HeatmapGradient
Creates a new HeatmapGradient object whose values are the same as this instance, unless overwritten by the specified parameters.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Object
Converts this object to something serializable in JSON.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override