WeeklyController constructor

WeeklyController(
  1. Map<String, String> data
)

Implementation

WeeklyController(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();
}