fetchData method

Future<Uint8List> fetchData()

Fetches the item's data.

Return Value: A Future that returns an Uint8List.

Implementation

Future<Uint8List> fetchData() {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_Item_fetchData(_handle, errorHandler);
  });
  return taskHandle.toFuture((element) => element.getValueAsUint8List()!);
}