dates property

Map<int, Date> dates

Returns the dates of the month

Implementation

Map<int, Date> get dates {
  final count = endOfMonth.day;
  final list = List.generate(count, (index) => startOfMonth.addDays(index));
  return {for (var date in list) date.day: date};
}