queryRelatedFeaturesWithFieldOptions method

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

Queries for related features in this service feature table using the provided parameters and query feature fields. See ServiceFeatureTable.queryFeaturesWithFieldOptions for more details.

Parameters:

  • feature — The feature for which to query related features.
  • parameters — The related query parameters.
  • queryFeatureFields — Enumeration indicating which fields to return from the query.

Return Value: A Future that returns a List of objects of RelatedFeatureQueryResult type.

Implementation

Future<List<RelatedFeatureQueryResult>> queryRelatedFeaturesWithFieldOptions(
    {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.toFuture((element) => element.getValueAsList()!);
}