musicProgress property
Gets the playback progress of the music, from 0.0 (start) to 1.0 (end).
Implementation
double get musicProgress => (musicDuration > 0.0) ? musicPosition / musicDuration : 0.0;
Gets the playback progress of the music, from 0.0 (start) to 1.0 (end).
double get musicProgress => (musicDuration > 0.0) ? musicPosition / musicDuration : 0.0;