GeofenceRadius class
A model representing the radius of Geofence.
Constructors
- GeofenceRadius({required String id, dynamic data, required double length})
- Constructs an instance of GeofenceRadius.
Properties
- activity → Activity?
-
Returns the user activity when geofence status changes.
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
-
The length of the radius 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?
-
Returns the remaining distance to the radius.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- speed → double?
-
Returns the passing speed when geofence status changes.
no setter
- status → GeofenceStatus
-
Returns the status of GeofenceRadius.
no setter
- timestamp → DateTime?
-
Returns the timestamp when geofence status changes.
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 GeofenceRadius in JSON format.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateRemainingDistance(
double distance) → void - Update the remaining distance of GeofenceRadius.
-
updateStatus(
GeofenceStatus status, Activity activity, double? speed, DateTime? timestamp) → bool - Update the status of GeofenceRadius. Returns true if the status changes, false otherwise.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited