populateFromServiceCancelable method

CancelableOperation<FeatureQueryResult> populateFromServiceCancelable(
  1. {required QueryParameters parameters,
  2. required bool clearCache,
  3. required List<String> outFields}
)

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

Implementation

CancelableOperation<FeatureQueryResult> populateFromServiceCancelable(
    {required QueryParameters parameters,
    required bool clearCache,
    required List<String> outFields}) {
  final coreOutFields =
      outFields.toMutableArray(valueType: _ElementType.string);
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ServiceFeatureTable_populateFromService(_handle,
        parameters._handle, clearCache, coreOutFields._handle, errorHandler);
  });
  return taskHandle.toCancelableOperation(
      (element) => element.getValueAsFeatureQueryResult()!);
}