isMidnight property
bool
get
isMidnight
Checks if the current time is midnight (00:00:00).
Returns: bool: True if the time is midnight, false otherwise.
Implementation
bool get isMidnight => hour == 0 && minute == 0 && second == 0;