Geofence class

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

Constructors

Geofence({required GeoPosition center, required double radius, required Duration dwell, String? name})
Specify a geofence.
Geofence.fromGeofenceSamplingConfiguration(GeofenceSamplingConfiguration configuration)
factory

Properties

center GeoPosition
The center of the geofence as a GPS location.
getter/setter pair
dwell Duration
The dwell time of this geofence. If an object is located inside this geofence for more that dwell, the moved function will return this.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
lastEvent DateTime
The last time an event was detected in this geofence.
getter/setter pair
name String?
The name of this geofence.
getter/setter pair
radius double
The radius of the geofence in meters.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state GeofenceState
The last known state of this geofence.
getter/setter pair

Methods

moved(GeoPosition location) GeofenceDatum?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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