GradientLegend class
Legend for MapGradientTheme
Constructors
- GradientLegend({required MapLayer layer, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin = const EdgeInsets.all(8), Decoration? decoration, double barHeight = 100, double? fontSize, double barWidth = 15, double textGap = 8, BoxBorder? barBorder})
- Builds a GradientLegend.
Properties
- barBorder → BoxBorder?
-
final
- barHeight → double
-
final
- barWidth → double
-
final
- decoration → Decoration?
-
The decoration to paint behind the MapAddon widget.
finalinherited
- fontSize → double
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- layer → MapLayer
-
finalinherited
- margin → EdgeInsetsGeometry?
-
Empty space to surround the decoration and MapAddon widget.
finalinherited
- padding → EdgeInsetsGeometry?
-
Empty space to inscribe inside the decoration. The MapAddon widget, if any, is
placed inside this padding.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textGap → double
-
final
Methods
-
buildWidget(
{required BuildContext context, required VectorMapApi mapApi, MapFeature? hover}) → Widget -
Builds the Widget for this addon
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