to24HourTime method
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')}';
}
Format DateTime as 24-Hour Time: HH:MM:SS
String to24HourTime() {
return '${hour.toString().padLeft(2, '0')}:${minute.toString().padLeft(2, '0')}:${second.toString().padLeft(2, '0')}';
}