to24HourTime method

String to24HourTime()

Format DateTime as 24-Hour Time: HH:MM:SS

Implementation

String to24HourTime() {
  return '${hour.toString().padLeft(2, '0')}:${minute.toString().padLeft(2, '0')}:${second.toString().padLeft(2, '0')}';
}