MapRuleTheme class
Theme for 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.
Constructors
-
MapRuleTheme({Color? color, Color? contourColor, LabelVisibility? labelVisibility, LabelStyleBuilder? labelStyleBuilder, MarkerBuilder? markerBuilder, required List<
ColorRule> colorRules})
Properties
- contourColor → Color?
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
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