CalendarView.single constructor

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

选择时间-单选构造 仅能选择一个日期

Implementation

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