CalendarView.range constructor

CalendarView.range({
  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 CalendarRangeDateChange? rangeDateChange,
  9. DateTime? minDate,
  10. DateTime? maxDate,
})

选择时间-时间范围选择

Implementation

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