XBCalendarHms constructor

XBCalendarHms({
  1. required ValueChanged<List<DateTime>> onDone,
  2. Key? key,
  3. XBValueGetter<bool, List<DateTime>>? onWillDone,
  4. ValueChanged<DateTime>? onMonthChange,
  5. VoidCallback? onCancel,
  6. String? title,
  7. String? doneBtnText,
  8. DateTime? minDateTime,
  9. DateTime? maxDateTime,
  10. DateTime? minEnableDateTime,
  11. DateTime? maxEnableDateTime,
  12. List<DateTime>? selectedDates,
  13. String yearUnit = "年",
  14. String monthUnit = "月",
  15. List<String>? weekDays,
  16. XBCalendarDisplay? display,
  17. List<DateTime>? initMarkDates,
  18. 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");