start method

Future<void> start()

Starts the location data source asynchronously and prepares to begin receiving location updates.

Return Value: a Future indicating when the LocationDataSource has started.

Implementation

Future<void> start() {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_LocationDataSource_startAsync(
        _handle, errorHandler);
  });
  return taskHandle.toFuture((_) {});
}