material_datepicker/range library

Classes

BroadcastMonthRange
A single broadcast month.
DatepickerDateRange
A datepicker-specific implementation of DateRange, extended with a title and an interface for computing the next/previous date range.
LastNDaysRange
A range 'N' days long, which ends yesterday (today is not included).
LastNDaysToTodayRange
A range 'N' days long which ends today.
MonthRange
A single month. Special-cased so that next/previous picks the next/previous month, and not just a blob with the same number of days; and also to have titles like "This month", "Last month", etc.
MultipleDaysRange
A range 'N' days long, where N is at least one.
NextNDaysFromTodayRange
A range 'N' days long, which starts today.
QuarterRange
A single quarter.
SingleDayRange
A single day. Special-cased to have titles like "today", "4 days ago", etc.
WeekRange
A single week. Special-cased to have titles like "This week" or "Last week".
YearRange
A single year. Special-cased to have titles like "This year" or "Last year".

Properties

allTime DatepickerDateRange
getter/setter pair

Functions

commonRanges(Clock clock) List<DatepickerDateRange>
last14Days(Clock clock) DatepickerDateRange
last30Days(Clock clock) DatepickerDateRange
last7Days(Clock clock) DatepickerDateRange
lastBroadcastMonth(Clock clock) DatepickerDateRange
lastMonth(Clock clock) DatepickerDateRange
lastQuarter(Clock clock) DatepickerDateRange
lastWeek(Clock clock) DatepickerDateRange
lastYear(Clock clock) DatepickerDateRange
rangeEqual(DatepickerDateRange? range, dynamic o) bool
rangeHash(DatepickerDateRange range) int
thisBroadcastMonth(Clock clock) DatepickerDateRange
thisMonth(Clock clock) DatepickerDateRange
thisQuarter(Clock clock) DatepickerDateRange
thisWeek(Clock clock) DatepickerDateRange
thisYear(Clock clock) DatepickerDateRange
today(Clock clock) DatepickerDateRange
yesterday(Clock clock) DatepickerDateRange

Typedefs

RangeFn = DatepickerDateRange? Function(DatepickerDateRange range)
RangeTitle = String Function(int ago)
Builds the date range title based on how many units ago the date range is.