updateStatus method

bool updateStatus(
  1. GeofenceStatus status,
  2. Activity activity,
  3. double? speed,
  4. DateTime? timestamp,
)

Update the status of GeofenceRadius. Returns true if the status changes, false otherwise.

Implementation

bool updateStatus(GeofenceStatus status, Activity activity, double? speed,
    DateTime? timestamp) {
  if (status != _status) {
    _status = status;
    _activity = activity;
    _speed = speed;
    _timestamp = timestamp;
    return true;
  }

  return false;
}