isBetween method
Checks if this nullable DateTime falls between two other DateTime objects.
See DHUDateExtensions.isBetween for full parameter documentation.
Returns false if this nullable DateTime is null.
Implementation
bool isBetween(
DateTime start,
DateTime end, {
bool inclusiveStart = true,
bool inclusiveEnd = false,
bool ignoreTime = false,
bool normalize = false,
}) {
if (this == null) return false;
return this!.isBetween(
start,
end,
inclusiveStart: inclusiveStart,
inclusiveEnd: inclusiveEnd,
ignoreTime: ignoreTime,
normalize: normalize,
);
}