formatTime method
Implementation
String formatTime(int seconds) {
int sec = seconds % 60;
int min = (seconds / 60).floor();
String minute = min.toString().length <= 1 ? "0$min" : "$min";
String second = sec.toString().length <= 1 ? "0$sec" : "$sec";
return "$minute : $second";
}