locate static method

Requests one-time location update and returns the Location once it is available, or LocationError.

Implementation

static Stream<Result<Location, Set<HyperTrackError>>> locate() {
  return _locateChannel.receiveBroadcastStream().map((event) {
    return deserializeLocateResult(event);
  });
}