createExportByProject method
Implementation
Future<Uint8List> createExportByProject(String projectId) async {
final result = _exportServiceClient.createExportForProject(
ProjectId(id: projectId),
options: CallOptions(
// compression: const GzipCodec(),
metadata: {'authorization': token},
),
);
final chunks = <List<int>>[];
await for (final chunk in result) {
chunks.add(chunk.content);
}
final bytes = chunks.expand((c) => c).toList();
// Convert bytes → String
final zipFileOutput = Uint8List.fromList(bytes);
return zipFileOutput;
}