percent property

double get percent

0.0 → 1.0 progress ratio. Returns 0 if total is unknown.

Implementation

double get percent => total > 0 ? sent / total : 0.0;