TWCalendarController class

Constructors

TWCalendarController({required DateTime firstDate, required DateTime lastDate, DateTime? selectedStartDate, DateTime? selectedEndDate, List<DateTime>? notSerialSelectedDates, void onSelectFinish(DateTime? selectStartTime, DateTime? selectEndTime, List<DateTime>? notSerialSelectedDates, int selectedDays)?, void onSelectDayRang(DateTime selectedDate, int selectedDays)?, String onSelectDayTitle(DateTime? selectStartTime, DateTime? selectEndTime, int selectedDays)?})

Properties

firstDate DateTime
可以选择开始的年月份
final
hashCode int
The hash code for this object.
no setterinherited
lastDate DateTime
可以选择结束的年月份
final
notSerialSelectedDates List<DateTime>?
不连续选择的日期数组, 注意选择类型 TWCalendarListSelectedMode.notSerial
getter/setter pair
onSelectDayRang → void Function(DateTime selectedDate, int selectedDays)?
每次选择日期回调
final
onSelectDayTitle String Function(DateTime? selectStartTime, DateTime? selectEndTime, int selectedDays)?
更新确定按钮 title 回调
final
onSelectFinish → void Function(DateTime? selectStartTime, DateTime? selectEndTime, List<DateTime>? notSerialSelectedDates, int selectedDays)?
点击确定回调
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedEndDate DateTime?
选择结束日期
getter/setter pair
selectedStartDate DateTime?
选择开始日期
getter/setter pair
state TWCalendarListState?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateData() → void
更新数据

Operators

operator ==(Object other) bool
The equality operator.
inherited