StatisticsQueryParameters constructor

StatisticsQueryParameters(
  1. {required List<StatisticDefinition> statisticDefinitions}
)

Creates statistics query parameters using one or more StatisticDefinition.

Parameters:

Implementation

factory StatisticsQueryParameters(
    {required List<StatisticDefinition> statisticDefinitions}) {
  _initializeArcGISEnvironmentIfNeeded();
  final coreStatisticDefinitions = statisticDefinitions.toMutableArray(
      valueType: _ElementType.statisticDefinition);
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_StatisticsQueryParameters_createWith(
        coreStatisticDefinitions._handle, errorHandler);
  });
  final StatisticsQueryParameters object =
      StatisticsQueryParameters._withHandle(handle);
  object._statisticDefinitions.value.setCache(statisticDefinitions);
  return object;
}