PolygonsController class

This class manages a set of PolygonControllers associated to a GoogleMapController.

Constructors

PolygonsController({required StreamController<MapEvent<Object?>> stream})
Initializes the cache. The StreamController comes from the GoogleMapController, and is shared with other controllers.

Properties

googleMap ↔ GMap
The GMap instance that this controller operates on.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
mapId int
The map ID for events.
getter/setter pairinherited
polygons Map<PolygonId, PolygonController>
Returns the cache of PolygonControllers. Test only.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addPolygons(Set<Polygon> polygonsToAdd) → void
Adds a set of Polygon objects to the cache.
bindToMap(int mapId, GMap googleMap) → void
Binds a mapId and the gmaps.GMap instance to this controller.
inherited
changePolygons(Set<Polygon> polygonsToChange) → void
Updates a set of Polygon objects with new options.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removePolygons(Set<PolygonId> polygonIdsToRemove) → void
Removes a set of PolygonIds from the cache.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited