selectFeaturesWithQueryCancelable method

CancelableOperation<FeatureQueryResult> selectFeaturesWithQueryCancelable(
  1. {required QueryParameters parameters,
  2. required SelectionMode mode}
)

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

Implementation

CancelableOperation<FeatureQueryResult> selectFeaturesWithQueryCancelable(
    {required QueryParameters parameters, required SelectionMode mode}) {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_FeatureLayer_selectFeaturesWithQuery(
        _handle, parameters._handle, mode.coreValue, errorHandler);
  });
  return taskHandle.toCancelableOperation(
      (element) => element.getValueAsFeatureQueryResult()!);
}