fetchLegendInfos method
override
Fetches the list of legend info.
Return Value: A Future. A List
of LegendInfo is returned
asynchronously by the task. A null is returned if an error occurs.
Implementation
@override
Future<List<LegendInfo>> fetchLegendInfos() {
final taskHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_ArcGISSublayer_fetchLegendInfos(
_handle, errorHandler);
});
return taskHandle.toFuture((element) => element.getValueAsList()!);
}