dates property

Map<int, Date> dates

Returns the dates of the year

Implementation

Map<int, Date> get dates {
  final count = startOfYear.isLeapYear ? 366 : 365;
  final list = List.generate(count, (index) => startOfYear.addDays(index));
  int index = 1;
  return {for (var date in list) index++: date};
}