fetchDataCancelable method

CancelableOperation<Uint8List> fetchDataCancelable()

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

Implementation

CancelableOperation<Uint8List> fetchDataCancelable() {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_Attachment_fetchData(_handle, errorHandler);
  });
  return taskHandle
      .toCancelableOperation((element) => element.getValueAsUint8List()!);
}