CometChatTimeSlotSelector class

Inheritance

Constructors

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

Properties

availableSlots → List<DateTimeRange<DateTime>>?
availableSlots is a list of TimeRange which is used to set the available time slots
final
blockedTime → List<DateTimeRange<DateTime>>?
blockedTime is a list of TimeRange which is used to block the time slots
final
buffer → Duration?
buffer is a Duration which sets the buffer time for the time slot selector
final
duration → Duration
duration is a Duration which sets the duration of the time slot selector
final
from → DateTime?
from is a string which sets the start time for the time slot selector
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
nextDayAvailableSlots → List<DateTimeRange<DateTime>>?
nextDayAvailableSlots is a list of TimeRange which is used to set the available time slots
final
nextDayBlockedTime → List<DateTimeRange<DateTime>>?
nextDayBlockedTime is a list of TimeRange which is used to block the time slots
final
onSelection → dynamic Function(DateTime selectedTime)?
onSelection is a callback which gets called when a time slot is selected
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedDay → DateTime
selectedDay is a DateTime which is used to set the selected day for the time slot selector`
final
style → TimeSlotSelectorStyle?
style is a object of TimeSlotSelectorStyle which is used to set the style for the time slot selector
final
theme → CometChatTheme?
theme is a object of CometChatTheme which is used to set the theme for the time slot selector
final
timeFormat → TimeFormat
timeFormat is a enum of TimeFormat which is used to set the time format for the time slot selector
final
to → DateTime?
to is a string which sets the end time for the time slot selector
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<CometChatTimeSlotSelector>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

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