defaultPresets function
The default list of presets to use in material-date-range-picker.
Implementation
List<DatepickerPreset> defaultPresets(Clock clock) => [
DatepickerPreset.fromRange(today(clock)),
DatepickerPreset.fromRange(yesterday(clock)),
DatepickerPreset.thisWeek(clock),
DatepickerPreset.fromRange(last7Days(clock)),
DatepickerPreset.lastWeek(clock),
DatepickerPreset.fromRange(last14Days(clock)),
DatepickerPreset.fromRange(thisMonth(clock)),
DatepickerPreset.fromRange(last30Days(clock)),
DatepickerPreset.fromRange(lastMonth(clock)),
DatepickerPreset.fromRange(allTime),
];