locate method Null safety

Stream<Result<Location, Set<HyperTrackError>>> locate()

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);
  });
}