Geofence class

Represents a circular geofence

Constructors

Geofence({required String id, required double latitude, required double longitude, required double radius, String? notifyOnEntry, String? notifyOnExit, String? notifyOnDwell, int loiteringDelay = 300000})
const
Geofence.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier for the geofence
final
latitude double
Latitude of the center point
final
loiteringDelay int
Delay in milliseconds before dwell event is triggered Default: 300000 (5 minutes)
final
longitude double
Longitude of the center point
final
notifyOnDwell String?
Notification text to show when dwelling in the geofence If null, no notification is shown
final
notifyOnEntry String?
Notification text to show when entering the geofence If null, no notification is shown
final
notifyOnExit String?
Notification text to show when exiting the geofence If null, no notification is shown
final
radius double
Radius in meters
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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