CalendarView constructor
CalendarView({
- Key? key,
- SelectMode selectMode = SelectMode.single,
- DisplayMode displayMode = DisplayMode.month,
- List<
String> ? weekNames, - bool showControllerBar = true,
- DateTime? initStartSelectedDate,
- DateTime? initEndSelectedDate,
- DateTime? initDisplayDate,
- CalendarDateChange? dateChange,
- CalendarRangeDateChange? rangeDateChange,
- DateTime? minDate,
- 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);