toMulti method

  1. @override
MultiCalendarValue toMulti()
override

Implementation

@override
MultiCalendarValue toMulti() {
  List<DateTime> dates = [];
  for (DateTime date = start;
      date.isBefore(end);
      date = date.add(const Duration(days: 1))) {
    dates.add(date);
  }
  dates.add(end);
  return CalendarValue.multi(dates);
}