resume method

void resume()

Restarts what pause stopped. When the location permission was denied, checks it again (without prompting): the user may have granted it from the system settings meanwhile.

Implementation

void resume() {
  if (!_paused || _disposed) return;
  _paused = false;
  if (_permissionGranted) {
    // Samples from before the pause would be blended with the new ones.
    _resetFilters();
    _startSensors();
  } else if (_initialized && !_checkingPermission) {
    _checkLocationPermission(request: false);
  }
}