Geofence class

A model representing a geofence.

Constructors

Geofence({required String id, dynamic data, required double latitude, required double longitude, required List<GeofenceRadius> radius})
Constructs an instance of Geofence.

Properties

data → dynamic
Custom data for Geofence.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Identifier for Geofence.
final
latitude double
The latitude of geofence center.
final
longitude double
The longitude of geofence center.
final
radius List<GeofenceRadius>
The radius of Geofence.
final
remainingDistance double?
Returns the remaining distance to the destination.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status GeofenceStatus
Returns the status of Geofence.
no setter
timestamp DateTime?
Returns the timestamp of Geofence.
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 Geofence in JSON format.
toString() String
A string representation of this object.
inherited
updateRemainingDistance(double distance) → void
Update the remaining distance of Geofence.

Operators

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