MapZoneManagerController class

Controller class for managing the zones and map-related operations.

Inheritance

Constructors

MapZoneManagerController.new({dynamic onZoneAdded(Zone)?, int? minimumCoordinatesForAdding, bool? multiZone})
Initializes the MapZoneManagerController with optional parameters.

Properties

currentZoneCoordinates Zone?
Getter to access the current zone being created.
no setter
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
mapController ↔ GoogleMapController?
The map controller to manipulate the map view.
getter/setter pair
minimumCoordinatesForAdding int?
Minimum number of coordinates required for creating a zone.
final
multiZone bool?
Whether multiple zones are allowed to be created (defaults to true).
final
onZoneAdded → dynamic Function(Zone)?
Callback function triggered when a new zone is added.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
zones List<Zone>
List of all the zones that have been created.
final

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
addPositionOnCurrentZone(LatLng position) → void
Adds a new position to the current zone being created.
addZone(Zone zone) → void
Adds the current zone to the list of zones if it meets the required coordinate count.
clearAll() → void
Clears all zones from the list.
createZone() → void
Creates a new zone if no current zone is being created.
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
override
getStyleJson(MapStyle mapStyle) String?
Returns the JSON style for the specified map style.
moveCamera(LatLng position) → void
Moves the camera to position.
moveCameraTo(int index) → void
Moves the camera to focus on a specific zone using index.
moveCameraToZone(Zone zone) → void
Moves the camera to focus on a specific zone.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
remove(Zone zone) → void
Removes a specific zone from the list of zones.
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
resetCurrentZone() → void
Resets the current zone, effectively discarding the current zone's coordinates.
toString() String
A string representation of this object.
inherited

Operators

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