PolyGeofence class

A model representing a polygon geofence.

Constructors

PolyGeofence({required String id, dynamic data, required List<LatLng> polygon})
Constructs an instance of PolyGeofence.

Properties

data → dynamic
Custom data for PolyGeofence.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Identifier for PolyGeofence.
final
polygon List<LatLng>
A list of coordinates to create a polygon. The polygon is always considered closed, regardless of whether the last point equals the first or not.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status PolyGeofenceStatus
Returns the status of PolyGeofence.
no setter
timestamp DateTime?
Returns the timestamp of PolyGeofence.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns the data fields of PolyGeofence in JSON format.
toString() String
A string representation of this object.
inherited
updateStatus(PolyGeofenceStatus status, DateTime timestamp) bool
Update the status of PolyGeofence. Returns true if the status changes, false otherwise.

Operators

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