isBetween method
Returns true if this falls between date1
and date2
irrespective
of the order in the Calender.
Implementation
bool isBetween(DateTime date1, DateTime date2) =>
(isAfter(date1) && isBefore(date2)) ||
(isAfter(date2) && isBefore(date1));