hourStr property

String hourStr

Returns hour as a two digit string, padded with a leading zero if necessary.

This is 24h time. For the 12h version, use hourStr_12h.

Implementation

String get hourStr => hour.toString().padLeft(2, '0');