operator <= method
Less than or equal operator for nullable DateTime with DateTime Returns false if this is null
Implementation
bool operator <=(DateTime? other) {
if (this == null) return false;
if (other == null) return false;
return this!.isBefore(other) || this!.isAtSameMomentAs(other);
}