Geofence class

Constructors

Geofence({required String identifier, double? radius, double? latitude, double? longitude, bool? notifyOnEntry, bool? notifyOnExit, bool? notifyOnDwell, int? loiteringDelay, Map<String, dynamic>? extras, List<List<double>>? vertices})

Properties

extras Map<String, dynamic>?
Arbitrary key/values appended to the recorded geofence record.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
identifier String
Unique identifier.
getter/setter pair
latitude double?
Latitude of the Geofence center.
getter/setter pair
loiteringDelay int?
The number of milliseconds the device must remain within geofence before firing notifyOnDwell event.
getter/setter pair
longitude double?
Longitude of the Geofence center.
getter/setter pair
notifyOnDwell bool?
Set true to fire only after remaining withing geofence for loiteringDelay milliseconds.
getter/setter pair
notifyOnEntry bool?
Set true to fire on entering the geofence.
getter/setter pair
notifyOnExit bool?
Set true fire on exiting the geofence.
getter/setter pair
radius double?
Circular geofence radius.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
vertices List<List<double>>?
Optional: a list of vertices ([ [lat, lng],...]) defining a Polygon geofence. By default, geofences are circular.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Return Geofence as Map.
toString() String
String representation of Geofence for print to log.
override

Operators

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