CometChatTimeSlotSelector constructor

const CometChatTimeSlotSelector({
  1. Key? key,
  2. DateTime? from,
  3. DateTime? to,
  4. required Duration duration,
  5. dynamic onSelection(
    1. DateTime selectedTime
    )?,
  6. Duration? buffer,
  7. CometChatTheme? theme,
  8. TimeSlotSelectorStyle? style,
  9. List<DateTimeRange<DateTime>>? blockedTime,
  10. TimeFormat timeFormat = TimeFormat.twelveHour,
  11. List<DateTimeRange<DateTime>>? availableSlots,
  12. required DateTime selectedDay,
  13. List<DateTimeRange<DateTime>>? nextDayBlockedTime,
  14. List<DateTimeRange<DateTime>>? nextDayAvailableSlots,
})

Implementation

const CometChatTimeSlotSelector(
    {super.key,
    this.from,
    this.to,
    required this.duration,
    this.onSelection,
    this.buffer,
    this.theme,
    this.style,
    this.blockedTime,
    this.timeFormat = TimeFormat.twelveHour,
    this.availableSlots,
    required this.selectedDay,
    this.nextDayBlockedTime,
    this.nextDayAvailableSlots});