getPreplannedMapAreasCancelable method

CancelableOperation<List<PreplannedMapArea>> getPreplannedMapAreasCancelable()

Cancelable version of getPreplannedMapAreas. See that method for more information.

Implementation

CancelableOperation<List<PreplannedMapArea>>
    getPreplannedMapAreasCancelable() {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_OfflineMapTask_getPreplannedMapAreasAsync(
        _handle, errorHandler);
  });
  return taskHandle
      .toCancelableOperation((element) => element.getValueAsList()!);
}