MapChartTheme class

Constructors

MapChartTheme({Color? color, Color? contourColor, LabelVisibility? labelVisibility, LabelStyleBuilder? labelStyleBuilder})
Theme for MapChart

Properties

contourColor Color?
final
hashCode int
The hash code for this object.
no setterinherited
labelStyleBuilder LabelStyleBuilder?
final
labelVisibility LabelVisibility?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getColor(MapChartDataSource? dataSource, MapFeature feature) Color?
hasValue() bool
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

Static Methods

getThemeOrDefaultColor(MapChartDataSource? dataSource, MapFeature feature, MapChartTheme theme) Color
gradient({Color? color, Color? contourColor, LabelVisibility? labelVisibility, LabelStyleBuilder? labelStyleBuilder, double? min, double? max, required String key, required List<Color> colors}) MapChartTheme
Creates a theme with 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.
rule({Color? color, Color? contourColor, LabelVisibility? labelVisibility, LabelStyleBuilder? labelStyleBuilder, required List<ColorRule> colorRules}) MapChartTheme
Creates a theme with colors by rule. The feature color is obtained from the first rule that returns a non-null color. If all rules return a null color, the default color is used.
value({Color? color, Color? contourColor, LabelVisibility? labelVisibility, LabelStyleBuilder? labelStyleBuilder, required String key, Map<dynamic, Color>? colors}) MapChartTheme
Creates a theme with colors by property value.

Constants

defaultColor → const Color
defaultContourColor → const Color