MonthViewSettings constructor Null safety

const MonthViewSettings(
  1. {int appointmentDisplayCount = 4,
  2. int numberOfWeeksInView = 6,
  3. MonthAppointmentDisplayMode appointmentDisplayMode = MonthAppointmentDisplayMode.indicator,
  4. bool showAgenda = false,
  5. MonthNavigationDirection navigationDirection = MonthNavigationDirection.horizontal,
  6. String dayFormat = 'EE',
  7. double agendaItemHeight = -1,
  8. bool showTrailingAndLeadingDates = true,
  9. double agendaViewHeight = -1,
  10. MonthCellStyle monthCellStyle = const MonthCellStyle(),
  11. AgendaStyle agendaStyle = const AgendaStyle()}
)

Creates a Month view settings for calendar.

The properties allows to customize the month view of SfCalendar.

Implementation

const MonthViewSettings(
    {this.appointmentDisplayCount = 4,
    this.numberOfWeeksInView = 6,
    this.appointmentDisplayMode = MonthAppointmentDisplayMode.indicator,
    this.showAgenda = false,
    this.navigationDirection = MonthNavigationDirection.horizontal,
    this.dayFormat = 'EE',
    this.agendaItemHeight = -1,
    this.showTrailingAndLeadingDates = true,
    this.agendaViewHeight = -1,
    this.monthCellStyle = const MonthCellStyle(),
    this.agendaStyle = const AgendaStyle()})
    : assert(appointmentDisplayCount >= 0),
      assert(numberOfWeeksInView >= 1 && numberOfWeeksInView <= 6),
      assert(agendaItemHeight >= -1),
      assert(agendaViewHeight >= -1);