GoogleMapState class
Methods
-
activate()
→ void
-
Called when this object is reinserted into the tree after having been
removed via deactivate.
inherited
-
addCircle(String id, GeoCoord center, double radius, {ValueChanged<String>? onTap, Color strokeColor = const Color(0x000000), double strokeOpacity = 0.8, double strokeWidth = 1, Color fillColor = const Color(0x000000), double fillOpacity = 0.35})
→ void
-
Adds a circle to the map by given
id
, center
and radius
.
override
-
addDirection(dynamic origin, dynamic destination, {String? startLabel, String? startIcon, String? startInfo, String? endLabel, String? endIcon, String? endInfo})
→ void
-
Adds a direction to the map by given
origin
and destination
coordinates.
override
-
addMarker(Marker marker)
→ void
-
Adds a marker to the map by given
position
.
override
-
addMarkerRaw(GeoCoord position, {String? label, String? icon, String? info, String? infoSnippet, ValueChanged<String>? onTap, VoidCallback? onInfoWindowTap})
→ void
-
Adds a marker to the map by given
position
.
override
-
addPolygon(String id, Iterable<GeoCoord> points, {ValueChanged<String>? onTap, Color strokeColor = const Color(0x000000), double strokeOpacity = 0.8, double strokeWidth = 1, Color fillColor = const Color(0x000000), double fillOpacity = 0.35})
→ void
-
Adds a polygon to the map by given
id
and points
.
override
-
build(BuildContext context)
→ Widget
-
Describes the part of the user interface represented by this widget.
override
-
changeMapStyle({bool waitUntilReady = true})
→ void
-
override
-
clearCircles()
→ void
-
Removes all circles from the map.
override
-
clearDirections()
→ void
-
Removes all directions from the map.
override
-
clearMarkers()
→ void
-
Removes all markers from the map.
override
-
clearPolygons()
→ void
-
Removes all polygones from the map.
override
-
deactivate()
→ void
-
Called when this object is removed from the tree.
inherited
-
debugFillProperties(DiagnosticPropertiesBuilder properties)
→ void
-
Add additional properties associated with the node.
inherited
-
didChangeDependencies()
→ void
-
Called when a dependency of this State object changes.
inherited
-
didUpdateWidget(covariant GoogleMapCross oldWidget)
→ void
-
Called whenever the widget configuration changes.
inherited
-
dispose()
→ void
-
Called when this object is removed from the tree permanently.
inherited
-
editCircle(String id, GeoCoord center, double radius, {ValueChanged<String>? onTap, Color strokeColor = const Color(0x000000), double strokeOpacity = 0.8, double strokeWidth = 1, Color fillColor = const Color(0x000000), double fillOpacity = 0.35})
→ void
-
Removes and then adds a circles to the map by given
id
, center
and radius
.
override
-
editPolygon(String id, Iterable<GeoCoord> points, {ValueChanged<String>? onTap, Color strokeColor = const Color(0x000000), double strokeOpacity = 0.8, double strokeWeight = 1, Color fillColor = const Color(0x000000), double fillOpacity = 0.35})
→ void
-
Removes and then adds a polygon to the map by given
id
and points
.
override
-
fixAssetPath(String icon)
→ String
-
inherited
-
initState()
→ void
-
Called when this object is inserted into the tree.
inherited
-
moveCamera(GeoCoord latLng, {bool animated = true, bool waitUntilReady = true, required double zoom})
→ void
-
Moves camera to the new coordinates.
override
-
moveCameraBounds(GeoCoordBounds newBounds, {double padding = 0, bool animated = true, bool waitUntilReady = true})
→ void
-
Moves camera to the new bounds.
override
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
reassemble()
→ void
-
Called whenever the application is reassembled during debugging, for
example during hot reload.
inherited
-
removeCircle(String id)
→ void
-
Removes a circle from the map by given
id
.
override
-
removeDirection(dynamic origin, dynamic destination)
→ void
-
Removes a direction from the map by given
origin
and destination
coordinates.
override
-
removeMarker(GeoCoord position)
→ void
-
Removes a marker from the map by given
position
.
override
-
removePolygon(String id)
→ void
-
Removes a polygon from the map by given
id
.
override
-
setState(VoidCallback fn)
→ void
-
Notify the framework that the internal state of this object has changed.
inherited
-
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style})
→ DiagnosticsNode
-
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString({DiagnosticLevel minLevel = DiagnosticLevel.info})
→ String
-
A string representation of this object.
inherited
-
toStringShort()
→ String
-
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
-
zoomCamera(double zoom, {bool animated = true, bool waitUntilReady = true})
→ void
-
Sets new camera zoom.
override