DatepickerDateRange constructor
DatepickerDateRange({})
Implementation
factory DatepickerDateRange({
DateRange? dateRange,
$core.int? daysAgo,
$core.int? weeksAgo,
$core.int? monthsAgo,
$core.int? yearsAgo,
$core.int? lastNDays,
$core.bool? allTimeRange,
$core.int? broadcastMonthsAgo,
$core.int? lastNDaysToToday,
$core.int? quartersAgo,
$core.int? startWeekday,
$core.int? nextNDaysFromToday,
}) {
final _result = create();
if (dateRange != null) {
_result.dateRange = dateRange;
}
if (daysAgo != null) {
_result.daysAgo = daysAgo;
}
if (weeksAgo != null) {
_result.weeksAgo = weeksAgo;
}
if (monthsAgo != null) {
_result.monthsAgo = monthsAgo;
}
if (yearsAgo != null) {
_result.yearsAgo = yearsAgo;
}
if (lastNDays != null) {
_result.lastNDays = lastNDays;
}
if (allTimeRange != null) {
_result.allTimeRange = allTimeRange;
}
if (broadcastMonthsAgo != null) {
_result.broadcastMonthsAgo = broadcastMonthsAgo;
}
if (lastNDaysToToday != null) {
_result.lastNDaysToToday = lastNDaysToToday;
}
if (quartersAgo != null) {
_result.quartersAgo = quartersAgo;
}
if (startWeekday != null) {
_result.startWeekday = startWeekday;
}
if (nextNDaysFromToday != null) {
_result.nextNDaysFromToday = nextNDaysFromToday;
}
return _result;
}