CalendarView constructor

CalendarView({
  1. Key? key,
  2. SelectMode selectMode = SelectMode.single,
  3. DisplayMode displayMode = DisplayMode.month,
  4. List<String>? weekNames,
  5. bool showControllerBar = true,
  6. DateTime? initStartSelectedDate,
  7. DateTime? initEndSelectedDate,
  8. DateTime? initDisplayDate,
  9. CalendarDateChange? dateChange,
  10. CalendarRangeDateChange? rangeDateChange,
  11. DateTime? minDate,
  12. DateTime? maxDate,
})

Implementation

CalendarView(
    {Key? key,
    this.selectMode = SelectMode.single,
    this.displayMode = DisplayMode.month,
    this.weekNames,
    this.showControllerBar = true,
    this.initStartSelectedDate,
    this.initEndSelectedDate,
    this.initDisplayDate,
    this.dateChange,
    this.rangeDateChange,
    this.minDate,
    this.maxDate})
    : assert(selectMode == SelectMode.single && dateChange != null ||
          selectMode == SelectMode.range && rangeDateChange != null),
      super(key: key);