MapGradientTheme class

Theme for gradient colors.

The gradient is created given the colors and limit values of the chosen property. The property must have numeric values. If the min is set, all smaller values will be displayed with the first gradient color. If the max is set, all larger values will be displayed with the last gradient color.

Inheritance

Constructors

MapGradientTheme({Color? color, Color? contourColor, LabelVisibility? labelVisibility, LabelStyleBuilder? labelStyleBuilder, MarkerBuilder? markerBuilder, double? min, double? max, required String key, required List<Color> colors})

Properties

colors List<Color>
final
contourColor Color?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
key String
final
labelStyleBuilder LabelStyleBuilder?
finalinherited
labelVisibility LabelVisibility?
finalinherited
markerBuilder MarkerBuilder
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getColor(MapDataSource dataSource, MapFeature feature) Color?
Gets the feature color.
override
hasValue() bool
Indicates whether the theme has any value set.
override
max(MapDataSource dataSource) double?
min(MapDataSource dataSource) double?
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