fraction property

double get fraction

Implementation

double get fraction => total <= 0 ? 1 : completed / total;