ScheduleViewSettings constructor Null safety

const ScheduleViewSettings(
  1. {TextStyle? appointmentTextStyle,
  2. double appointmentItemHeight = -1,
  3. bool hideEmptyScheduleWeek = false,
  4. MonthHeaderSettings monthHeaderSettings = const MonthHeaderSettings(),
  5. WeekHeaderSettings weekHeaderSettings = const WeekHeaderSettings(),
  6. DayHeaderSettings dayHeaderSettings = const DayHeaderSettings()}
)

Creates a schedule view settings for calendar.

The properties allows to customize the schedule view of SfCalendar.

Implementation

const ScheduleViewSettings(
    {this.appointmentTextStyle,
    this.appointmentItemHeight = -1,
    this.hideEmptyScheduleWeek = false,
    this.monthHeaderSettings = const MonthHeaderSettings(),
    this.weekHeaderSettings = const WeekHeaderSettings(),
    this.dayHeaderSettings = const DayHeaderSettings()})
    : assert(appointmentItemHeight >= -1);