CometChatTimeSlotSelector constructor
const
CometChatTimeSlotSelector({
- Key? key,
- DateTime? from,
- DateTime? to,
- required Duration duration,
- dynamic onSelection(
- DateTime selectedTime
- Duration? buffer,
- CometChatTheme? theme,
- TimeSlotSelectorStyle? style,
- List<
DateTimeRange< ? blockedTime,DateTime> > - TimeFormat timeFormat = TimeFormat.twelveHour,
- List<
DateTimeRange< ? availableSlots,DateTime> > - required DateTime selectedDay,
- List<
DateTimeRange< ? nextDayBlockedTime,DateTime> > - List<
DateTimeRange< ? nextDayAvailableSlots,DateTime> >
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});