getUploadProgress method
Gets a stream of progress updates for an upload task.
Parameters:
taskId: The ID returned by startUpload
Returns a stream that emits double values between 0.0 and 1.0, representing the upload progress percentage.
The stream completes when the upload finishes or throws an error if the upload fails.
Implementation
@override
Stream<double> getUploadProgress(String taskId) {
final controller = _progressControllers[taskId];
if (controller == null) {
throw Exception('Task not found: $taskId');
}
return controller.stream;
}