formatMmSs static method

String formatMmSs(
  1. int seconds
)

m:ss of an arbitrary number of seconds.

Implementation

static String formatMmSs(int seconds) {
  final s = seconds < 0 ? 0 : seconds;
  return '${s ~/ 60}:${(s % 60).toString().padLeft(2, '0')}';
}