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, int zIndex: 0, VoidCallback onTap})
Creates an immutable representation of a Circle to draw on GoogleMap.
const

Properties

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
hashCode int
The hash code for this object. [...]
read-only, override
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.
read-only, inherited
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
zIndex int
The z-index of the circle, used to determine relative drawing order of map overlays. [...]
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, int zIndexParam, 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 non-existent method or property is accessed. [...]
inherited
toJson() → dynamic
Converts this object to something serializable in JSON.
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
override