loadBundleStream method
Loads a Firestore bundle into the local cache.
bundleData is a stream of the bundle bytes, delivered in chunks of any size (for example a file or an HTTP
response). Returns a LoadBundleTask, which notifies callers with progress updates, and completion or error
events.
Implementation
LoadBundleTask loadBundleStream(Stream<List<int>> bundleData) {
final LoadBundleTask resultTask = LoadBundleTaskInternal.create();
client.loadBundle(bundleData, resultTask).catchError((Object error) {
if (!resultTask.isComplete) {
resultTask.setException(error);
}
});
return resultTask;
}