AreaOptions class
Class that defines customization options for areas in the PolarisMapEditor
.
Constructors
-
AreaOptions({List<
List< ? holePointsList, required Color color, double borderStrokeWidth = 0.0, Color borderColor = Colors.transparent, bool disableHolesBorder = false, bool isDotted = false, bool isFilled = false, StrokeCap strokeCap = StrokeCap.round, StrokeJoin strokeJoin = StrokeJoin.round, String? label, TextStyle labelStyle = const TextStyle(), PolygonLabelPlacement labelPlacement = PolygonLabelPlacement.centroid, bool rotateLabel = false})LatLng> > -
Default constructor for
AreaOptions
.const
Properties
- borderColor → Color
-
The color of the border around the area.
final
- borderStrokeWidth → double
-
The width of the border around the area.
final
- color → Color
-
The main color of the area.
final
- disableHolesBorder → bool
-
Whether to disable the border for holes within the area.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
holePointsList
→ List<
List< ?LatLng> > -
Optional list of lists of LatLng coordinates defining holes within the area.
final
- isDotted → bool
-
Whether to draw the area as a dotted line.
final
- isFilled → bool
-
Whether to fill the area with color.
final
- label → String?
-
An optional label to display within the area.
final
- labelPlacement → PolygonLabelPlacement
-
How to position the label within the area.
final
- labelStyle → TextStyle
-
The text style for the label.
final
- rotateLabel → bool
-
Whether to rotate the label to align with the area's shape.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- strokeCap → StrokeCap
-
The style of the ends of the area's lines.
final
- strokeJoin → StrokeJoin
-
The style of the corners where lines meet in the area.
final
Methods
-
copyWith(
{List< List< ? holePointsList, Color? color, double? borderStrokeWidth, Color? borderColor, bool? disableHolesBorder, bool? isDotted, bool? isFilled, StrokeCap? strokeCap, StrokeJoin? strokeJoin, String? label, TextStyle? labelStyle, PolygonLabelPlacement? labelPlacement, bool? rotateLabel}) → AreaOptionsLatLng> > - Creates a copy of this object with the given fields replaced with new values.
-
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