isNight property
bool
get
isNight
Return true if is night, false otherwise.
Night is between 23 and 5.
Implementation
bool get isNight => hour >= 23 || hour < 6;
Return true if is night, false otherwise.
Night is between 23 and 5.
bool get isNight => hour >= 23 || hour < 6;