fetchLegendInfos method

  1. @override
Future<List<LegendInfo>> fetchLegendInfos()
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_WMSSublayer_fetchLegendInfos(
      _handle,
      errorHandler,
    );
  });
  return taskHandle.toFuture(
    (element) => element.getValueAsList()!,
  );
}