prettyPrint method
Prints a Duration with the format {h:mm}. Ex: 1:10, 1, 1:05.
Implementation
String prettyPrint() {
final int minutes = inMinutes - inHours.floor() * 60;
return "${inHours.floor()}h${minutes == 0 ? "" : minutes.toString().padLeft(2, "0")}";
}