isBeforeOrEqual method
Checks if the current DateTime instance is before or equal to the given dateTime.
Returns true if it is, false otherwise.
Implementation
bool isBeforeOrEqual(DateTime dateTime) {
final isAtSameMomentAs = dateTime.isAtSameMomentAs(this);
return isAtSameMomentAs | isBefore(dateTime);
}