queryFeaturesWithFieldOptionsCancelable method

CancelableOperation<FeatureQueryResult> queryFeaturesWithFieldOptionsCancelable(
  1. {required QueryParameters parameters,
  2. required QueryFeatureFields queryFeatureFields}
)

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

Implementation

CancelableOperation<FeatureQueryResult>
    queryFeaturesWithFieldOptionsCancelable(
        {required QueryParameters parameters,
        required QueryFeatureFields queryFeatureFields}) {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ServiceFeatureTable_queryFeaturesWithFieldOptions(
        _handle,
        parameters._handle,
        queryFeatureFields.coreValue,
        errorHandler);
  });
  return taskHandle.toCancelableOperation(
      (element) => element.getValueAsFeatureQueryResult()!);
}