Circle class
Draws a circle on the map.
- Annotations
Constructors
- Circle({required CircleId circleId, bool consumeTapEvents = false, Color fillColor = Colors.transparent, LatLng center = const LatLng(0.0, 0.0), double radius = 0, Color strokeColor = Colors.black, int strokeWidth = 10, bool visible = true, VoidCallback? onTap})
-
Creates an immutable representation of a Circle to draw on PlatformMap.
const
Properties
- appleMapsCircle → Circle
-
no setter
- center → LatLng
-
Geographical location of the circle center.
final
- circleId → CircleId
-
Uniquely identifies a Circle.
final
- consumeTapEvents → bool
-
True if the Circle consumes tap events.
final
- fillColor → Color
-
Fill color in ARGB format, the same format used by Color. The default value is transparent (0x00000000).
final
- googleMapsCircle → Circle
-
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- onTap → VoidCallback?
-
Callbacks to receive tap events for circle placed on this map.
final
- radius → double
-
Radius of the circle in meters; must be positive. The default value is 0.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- strokeColor → Color
-
Fill color in ARGB format, the same format used by Color. The default value is black (0xff000000).
final
- strokeWidth → int
-
The width of the circle's outline in screen points.
final
- visible → bool
-
True if the circle is visible.
final
Methods
-
clone(
) → Circle - Creates a new Circle object whose values are the same as this instance.
-
copyWith(
{bool? consumeTapEventsParam, Color? fillColorParam, LatLng? centerParam, double? radiusParam, Color? strokeColorParam, int? strokeWidthParam, bool? visibleParam, VoidCallback? onTapParam}) → Circle - Creates a new Circle object whose values are the same as this instance, unless overwritten by the specified parameters.
-
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.
override
Static Methods
-
toAppleMapsCircleSet(
Set< Circle> circles) → Set<Circle> -
toGoogleMapsCircleSet(
Set< Circle> circles) → Set<Circle>