isAfternoon property
bool
get
isAfternoon
Return true if is afternoon, false otherwise.
Afternoon is defined as 12:00 to 17:59.
Implementation
bool get isAfternoon => hour >= 12 && hour < 18;
Return true if is afternoon, false otherwise.
Afternoon is defined as 12:00 to 17:59.
bool get isAfternoon => hour >= 12 && hour < 18;