queryRelatedFeaturesWithFieldOptionsCancelable method

CancelableOperation<List<RelatedFeatureQueryResult>> queryRelatedFeaturesWithFieldOptionsCancelable(
  1. {required ArcGISFeature feature,
  2. required RelatedQueryParameters parameters,
  3. required QueryFeatureFields queryFeatureFields}
)

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

Implementation

CancelableOperation<List<RelatedFeatureQueryResult>>
    queryRelatedFeaturesWithFieldOptionsCancelable(
        {required ArcGISFeature feature,
        required RelatedQueryParameters parameters,
        required QueryFeatureFields queryFeatureFields}) {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore
        .RT_ServiceFeatureTable_queryRelatedFeaturesWithFieldOptions(
            _handle,
            feature._handle,
            parameters._handle,
            queryFeatureFields.coreValue,
            errorHandler);
  });
  return taskHandle
      .toCancelableOperation((element) => element.getValueAsList()!);
}