isAfternoon property

bool get isAfternoon

Returns true if the time is afternoon (12:00–17:59).

Implementation

bool get isAfternoon => hour >= 12 && hour < 18;