MonthGrid constructor

MonthGrid(
  1. YearMonth yearMonth, {
  2. required CurrentDatePickedEvent currentDatePickedEvent,
  3. FirstDayOfWeek firstDayOfWeek = FirstDayOfWeek.sun,
  4. DayBoxStyle? dayBoxStyle,
  5. Axis direction = Axis.vertical,
  6. List<Events> events = const <Events>[],
  7. List<Holiday> holiday = const <Holiday>[],
})

Create new GridView of yearMonth

Implementation

MonthGrid(this.yearMonth,
    {required this.currentDatePickedEvent,
    this.firstDayOfWeek = FirstDayOfWeek.sun,
    this.dayBoxStyle,
    this.direction = Axis.vertical,
    this.events = const <Events>[],
    this.holiday = const <Holiday>[]})
    : assert(_checkHolidayListReduced(holiday, yearMonth)),
      assert(_checkEventsListReduced(events, yearMonth)),
      _dim = List<DateTime?>.filled(
          firstDayOfWeek.calculatePlaceholderFromStart(yearMonth), null,
          growable: true)
        ..addAll(yearMonth.allDaysInMonth)
        ..addAll(List.filled(
            firstDayOfWeek.calculatePlaceholderFromEnd(yearMonth), null));