getUploadProgress method

  1. @override
Stream<double> getUploadProgress(
  1. String taskId
)
override

Gets a stream of progress updates for an upload task.

Parameters:

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;
}