DateTimeRangeExtensions extension
Extension on DateTimeRange to provide additional functionality
Methods
-
inRange(
DateTime date, {bool isInclusive = true}) → bool -
Available on DateTimeRange<
ReturnsDateTime> , provided by the DateTimeRangeExtensions extensiontrueif the givendateis within this range. -
isNowInRange(
{DateTime? now, bool isInclusive = true}) → bool -
Available on DateTimeRange<
ReturnsDateTime> , provided by the DateTimeRangeExtensions extensiontrueifnowis within this range. -
isNthDayOfMonthInRange(
{required int n, required int dayOfWeek, required int month, bool isInclusive = true}) → bool -
Available on DateTimeRange<
ReturnsDateTime> , provided by the DateTimeRangeExtensions extensiontrueif thenth occurrence ofdayOfWeekin the givenmonthfalls within this date range.