toHoursMinutes method

String toHoursMinutes()

Converts the duration into a readable string 05:15

Implementation

String toHoursMinutes() {
  String twoDigitMinutes = _toTwoDigits(inMinutes.remainder(60));
  return "${_toTwoDigits(inHours)}:$twoDigitMinutes";
}