isBetween method
check if a DateTime is between two other DateTimes.
If strict is false isBetween is also true if this is equal
to one of the interval borders.
Implementation
bool isBetween(DateTime begin, DateTime end, {bool strict = false}) =>
(isAfter(begin) && isBefore(end)) ||
(!strict && (this == begin || this == end));