fetchLegendInfosCancelable method

CancelableOperation<List<LegendInfo>> fetchLegendInfosCancelable()

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

Implementation

CancelableOperation<List<LegendInfo>> fetchLegendInfosCancelable() {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_Layer_fetchLegendInfos(_handle, errorHandler);
  });
  return taskHandle
      .toCancelableOperation((element) => element.getValueAsList()!);
}