daysOfWeekWith method

List<Hora> daysOfWeekWith({
  1. WeekConfig config = WeekConfig.iso,
})

All 7 days in the current week.

Implementation

List<Hora> daysOfWeekWith({WeekConfig config = WeekConfig.iso}) {
  _validateWeekConfig(config);
  final start = startOfWeek(config: config);
  return List.generate(7, (i) => start.add(i, TemporalUnit.day));
}