printTime method

String printTime()

Prints a DateTime with the format {hh}h{mm}. Ex: 13h50, 2h10, 10h05.

Implementation

String printTime() => "${hour}h${minute.toString().padLeft(2, "0")}";