isBetweenExclusive method

bool isBetweenExclusive(
  1. DateTime? start,
  2. DateTime? end
)

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 (this == null || start == null || end == null) return false;
  return this! > start && this! < end;
}