progressPercentage property

double get progressPercentage

Implementation

double get progressPercentage {
final double res = position.inSeconds * 100 /
      duration.inSeconds;

if ( res >= 100 )return 100;
if ( res <= 0 || res.isNaN)return 0;
return res;
}