isNight property

bool get isNight

Returns true if the time is night (23:00–05:59).

Implementation

bool get isNight => hour >= 23 || hour < 6;