getSelectedFeatures method

Future<FeatureQueryResult> getSelectedFeatures()

Returns a list of the currently selected features.

Return Value: A Future that returns a FeatureQueryResult.

Implementation

Future<FeatureQueryResult> getSelectedFeatures() {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_AnnotationLayer_getSelectedFeaturesAsync(
      _handle,
      errorHandler,
    );
  });
  return taskHandle.toFuture(
    (element) => element.getValueAsFeatureQueryResult()!,
  );
}