isBeforeDate method
Returns true if the date of this occurs before the date of other
.
The comparison is independent of whether the time is in UTC or in the local time zone.
Implementation
bool isBeforeDate(DateTime other) => dateOnly.isBefore(other.dateOnly);