GeofenceRadius class

Data class to create radius of Geofence.

Constructors

GeofenceRadius({required String id, dynamic data, required double length})

Properties

activity Activity?
Return the activity.
no setter
data → dynamic
Custom data for GeofenceRadius.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Identifier for GeofenceRadius.
final
length double
Radius length in meters. The best result should be set between 100 and 150 meters in radius. If Wi-FI is available, it can be set up to 20~40m.
final
remainingDistance double?
Return the remaining distance.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speed double?
Return the speed.
no setter
status GeofenceStatus
Return the geofence status.
no setter
timestamp DateTime?
Return the timestamp.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Return the internal field of the class in map format.
toString() String
A string representation of this object.
inherited
updateRemainingDistance(double distance) → void
Update the remaining distance.
updateStatus(GeofenceStatus status, Activity activity, Position position) bool
Update geofence status of GeofenceRadius. If the status changes, it return true, otherwise it return false.

Operators

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