queryRelatedFeatureCount method

Future<int> queryRelatedFeatureCount({
  1. required ArcGISFeature feature,
  2. RelatedQueryParameters? parameters,
})

Performs a query that returns the number of related features to supplied feature based on the parameters.

Parameters:

  • feature — The feature which should be queried for the number of related features.
  • parameters — The parameters to the query.

Return Value: A task that represents the asynchronous query of related feature count. The value of the task result contains a uint64_t.

Implementation

Future<int> queryRelatedFeatureCount({
  required ArcGISFeature feature,
  RelatedQueryParameters? parameters,
}) {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ArcGISFeatureTable_queryRelatedFeatureCountCombined(
      _handle,
      feature._handle,
      parameters?._handle ?? ffi.nullptr,
      errorHandler,
    );
  });
  return taskHandle.toFuture(
    (element) => element.getValueAsInt()!,
  );
}