exportCAR method

Future<Uint8List> exportCAR(
  1. String cid
)

Exports a CAR file for the given CID.

Implementation

Future<Uint8List> exportCAR(String cid) async {
  try {
    // Delegate to the datastoreHandler which has the CAR export implementation
    return await _container.get<DatastoreHandler>().exportCAR(cid);
  } catch (e) {
    // print('Error exporting CAR file: $e');
    rethrow;
  }
}