fetchLegendInfosCancelable method
Cancelable version of fetchLegendInfos. See that method for more information.
Implementation
CancelableOperation<List<LegendInfo>> fetchLegendInfosCancelable() {
final taskHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_ArcGISSublayer_fetchLegendInfos(
_handle, errorHandler);
});
return taskHandle
.toCancelableOperation((element) => element.getValueAsList()!);
}