stop method

Future<void> stop()

Stop GeofenceService. Note that the registered geofence list is cleared when this function is called.

Implementation

Future<void> stop() async {
  await _cancelStream();

  _activity = Activity.unknown;
  _geofenceList.clear();

  _isRunningService = false;
  _printDevLog('GeofenceService stopped.');
}