getSelectedFeatures method

Future<FeatureQueryResult> getSelectedFeatures()

Returns a collection of the currently selected features.

Return Value: A Future that returns a FeatureQueryResult.

Implementation

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