audioTimer method

String audioTimer(
  1. double duration,
  2. double position
)

Implementation

String audioTimer(double duration, double position) {
  return '${(duration ~/ 60).toInt()}:${(duration % 60).toInt().toString().padLeft(2, '0')}/${position ~/ 60}:${(position % 60).toInt().toString().padLeft(2, '0')}';
}