isEvening method

bool isEvening()

Check if the date is in the evening.

Implementation

bool isEvening() {
  if (this == null) return false;
  if (this?.hour == null) return false;
  return this!.hour >= 18 && this!.hour < 24;
}