Geofence class

A class representing a circular geofence with a center, a radius (in meters) and a name.


Geofence({GeoPosition center, double radius, int dwell, String name})
Specify a geofence.
Geofence.fromMeasure(GeofenceMeasure measure)


center GeoPosition
The center of the geofence as a GPS location.
read / write
dwell int
The dwell time of this geofence in miliseconds. If an object is located inside this geofence for more that dwell miliseconds, the GeofenceState.DWELL event is fired.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
lastEvent DateTime
The last time an event was fired inside this geofence.
read / write
name String
The name of this geofence.
read / write
radius double
The radius of the geofence in meters.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
state GeofenceState
The last known state of this geofence.
read / write


moved(GeoPosition location) GeofenceDatum
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]