parse static method
Implementation
static TimeOfDayWithSeconds parse(String content) {
final hour = int.tryParse(content.substring(0, 2));
final minute = int.tryParse(content.substring(2, 4));
final second = int.tryParse(content.substring(4, 6));
if (hour == null || minute == null || second == null) {
throw FormatException('Invalid time definition: $content');
}
return TimeOfDayWithSeconds(hour: hour, minute: minute, second: second);
}