untilPriority method

ProgressWithOperations untilPriority(
  1. StreamPriority priority
)

Returns download progress towards all data up until the specified priority being received.

The returned ProgressWithOperations tracks the target amount of operations that need to be downloaded in total and how many of them have already been received.

Implementation

ProgressWithOperations untilPriority(StreamPriority priority) {
  return _internal.untilPriority(priority);
}