toString method Null safety

String toString()
override

Output as ISO 8601 extended time format with seconds accuracy, omitting the 24th hour and 60th leap second. E.g., "09:30:00".

Implementation

String toString() =>
    '${_twoDigits(hour)}:${_twoDigits(minute)}:${_twoDigits(second)}';