stopTracking method

void stopTracking()

Stops tracking and cancels the stream.

Implementation

void stopTracking() {
  _positionStreamSubscription?.cancel();
  _positionStreamSubscription = null;
  currentLocation.value = null; // reset
}