formatDuration method
Implementation
String formatDuration() {
int minutes = this ~/ 60;
int seconds = this % 60;
return '${minutes.toString().padLeft(2, '0')}:${seconds.toString().padLeft(2, '0')}';
}
String formatDuration() {
int minutes = this ~/ 60;
int seconds = this % 60;
return '${minutes.toString().padLeft(2, '0')}:${seconds.toString().padLeft(2, '0')}';
}