XBCalendarHms constructor
XBCalendarHms({
- required ValueChanged<
List< onDone,DateTime> > - Key? key,
- XBValueGetter<
bool, List< ? onWillDone,DateTime> > - ValueChanged<
DateTime> ? onMonthChange, - VoidCallback? onCancel,
- String? title,
- String? doneBtnText,
- DateTime? minDateTime,
- DateTime? maxDateTime,
- DateTime? minEnableDateTime,
- DateTime? maxEnableDateTime,
- List<
DateTime> ? selectedDates, - String yearUnit = "年",
- String monthUnit = "月",
- List<
String> ? weekDays, - XBCalendarDisplay? display,
- List<
DateTime> ? initMarkDates, - Stream<
XBCalendarStreamData> ? dataStream,
Implementation
XBCalendarHms({
required super.onDone,
super.key,
super.onWillDone,
super.onMonthChange,
super.onCancel,
super.title,
super.doneBtnText,
super.minDateTime,
super.maxDateTime,
super.minEnableDateTime,
super.maxEnableDateTime,
super.selectedDates,
super.yearUnit = "年",
super.monthUnit = "月",
super.weekDays,
super.display,
super.initMarkDates,
super.dataStream,
}) : assert(selectedDates == null || selectedDates.length < 2,
"selectedDates.length must be less than 2");