getBytes method

Future<Uint8List> getBytes({
  1. String? streamId,
})

Implementation

Future<Uint8List> getBytes({String? streamId}) async {
  if (!exists) {
    throw StorageDatabaseException("The file ($filename) not exists yet.");
  }
  if (streamId != null &&
      storageListeners.hasStreamId(_fileShortPath, streamId)) {
    storageListeners.getDate(_fileShortPath, streamId);
  }
  return await ioFile.readAsBytes();
}