getDateStart method
ZonedDateTime?
getDateStart()
Implementation
ZonedDateTime? getDateStart() {
switch (dateFilterType) {
case DATE_FILTER_ALL:
return null;
case DATE_FILTER_YESTERDAY:
return ZonedDateTime(dateTimeMillis: DateUtils.yesterday());
case DATE_FILTER_TODAY:
return ZonedDateTime(dateTimeMillis: DateUtils.today());
case DATE_FILTER_NOW:
return ZonedDateTime(dateTimeMillis: DateUtils.nowUntilMinutes());
case DATE_FILTER_TOMORROW:
return ZonedDateTime(dateTimeMillis: DateUtils.tomorrow());
case DATE_FILTER_BEFORE_TODAY:
return null;
case DATE_FILTER_AFTER_TODAY:
return ZonedDateTime(dateTimeMillis: DateUtils.tomorrow());
case DATE_FILTER_RANGE:
return dateStart;
}
return dateStart;
}