populateFromServiceCancelable method
- {required QueryParameters parameters,
- required bool clearCache,
- 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()!);
}