isBetweenExclusive method
Check if this DateTime is between two other DateTimes (exclusive) Returns false if any of the DateTimes is null
Implementation
bool isBetweenExclusive(DateTime? start, DateTime? end) {
if (start == null || end == null) return false;
return this > start && this < end;
}