progress property

double get progress

Completion as a 0..1 fraction (0 until a total is known).

Implementation

double get progress => (total == null || total! <= 0) ? 0 : (completed! / total!).clamp(0.0, 1.0);