Circle class
A circle with a radius in meters.
It's geodesic, like Google's: the radius is meters on the ground, not pixels. That's why it's drawn by turning it into a many-sided polygon; a pixel circle would change its real size when you zoom the map out.
- Annotations
Constructors
- Circle({required CircleId circleId, required LatLng center, required double radius, Color fillColor = const Color(0x5539FF14), Color strokeColor = const Color(0xFF39FF14), double strokeWidth = 2, bool visible = true, double zIndex = 0, int segments = 72, VoidCallback? onTap})
-
Creates the circle.
const
Properties
- center → LatLng
-
The center.
final
- circleId → CircleId
-
The identifier.
final
- fillColor → Color
-
The fill color.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- onTap → VoidCallback?
-
What to do when it's tapped.
final
- radius → double
-
The radius in meters.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- segments → int
-
How many sides it's broken into.
final
- strokeColor → Color
-
The stroke color.
final
- strokeWidth → double
-
The stroke width.
final
- visible → bool
-
Whether it's drawn.
final
- zIndex → double
-
The stacking order.
final
Methods
-
copyWith(
{LatLng? center, double? radius, Color? fillColor, Color? strokeColor, double? strokeWidth, bool? visible, double? zIndex, int? segments, VoidCallback? onTap}) → Circle - A copy with some fields changed.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override