stop method

Future<void> stop()

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

Implementation

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

  _polyGeofenceList.clear();

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