totalSpeed property

double get totalSpeed

Sum of the speeds of every running task, in bytes per second.

Implementation

double get totalSpeed => _tasks.fold(0, (double sum, UDownloadTask t) => sum + (t.isActive ? t.speed : 0));