GeofenceRegion class

Defines a circular geofence region.

Constructors

GeofenceRegion({required String id, required double latitude, required double longitude, required double radius, List<GeofenceTrigger> triggers = const [GeofenceTrigger.enter, GeofenceTrigger.exit], int? loiteringDelayMs, int? expirationDurationMs})
const
GeofenceRegion.fromMap(Map<String, dynamic> map)
Creates a GeofenceRegion from a map.
factory

Properties

expirationDurationMs int?
Optional expiration duration in milliseconds. null means no expiration.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier for this geofence.
final
latitude double
Center latitude of the geofence.
final
loiteringDelayMs int?
Optional dwell time in milliseconds (for GeofenceTrigger.dwell).
final
longitude double
Center longitude of the geofence.
final
radius double
Radius in meters.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
triggers List<GeofenceTrigger>
Which transitions to monitor.
final

Methods

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

Operators

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