HourlyController constructor
Implementation
HourlyController(this.data) {
data = data;
years = CalenderController().getFullCalender(DateTime.now().year, getEndDate().year + 1);
years
.map((year) => year.months
.map((month) => allDates.addAll(month.days.map((day) => DateTime(year.value, month.value, day.value)).toList()))
.toList())
.toList();
getDates();
}