toFormattedString method

String toFormattedString()

Returns value as time string. Ex: 13:25

Implementation

String toFormattedString() {
  return '${_addLeadingZeroIfNeeded(hour)}:${_addLeadingZeroIfNeeded(minute)}';
}