isEvening property

bool get isEvening

Return true if is evening, false otherwise. Evening is between 18 and 22.

Implementation

bool get isEvening => hour >= 18 && hour < 23;