SchedulerUtils class

Constructors

SchedulerUtils()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

timeZones ↔ Map<String, Map>
getter/setter pair

Static Methods

adjustAvailableSlots(List<DateTimeRange<DateTime>> availableSlots, List<DateTimeRange<DateTime>> blockedSlots, Duration bufferTime, DateTime selectedDate) → List<DateTimeRange<DateTime>>
checkBlockedSlotStatus(List<DateTimeRange<DateTime>> blockedSlots, int bufferTime, DateTime proposedTime) → bool
checkTimeIsOverlapping(DateTimeRange<DateTime> meeting, List<DateTimeRange<DateTime>> availableSlots, List<DateTimeRange<DateTime>> blockedSlots, Duration bufferTime, DateTime selectedDate) → bool
fetchICSFile(String? url, String timeZone, dynamic onError(CometChatException)) → Future<Map<String, Map<String, dynamic>>>
generateCumulativeTimeSlots(DateTime from, DateTime to, int limit, Map<String, List<TimeRange>>? availability, Map<String, Map<String, dynamic>> blockedDates, int interval, Duration bufferTime, String messageTimeZone, String localTimeZone) → List<DateTime>
generateTimeStamps(DateTime selectedDate, List<DateTimeRange<DateTime>> availableSlots, List<DateTimeRange<DateTime>> blockedSlots, int meetingDuration, Duration bufferTime, TimeFormat timeFormat, List<DateTimeRange<DateTime>> nextDayAvailableSlots, List<DateTimeRange<DateTime>> nextDayBlockedSlots) → List<DateTime>
getActionRequestBody(SchedulerMessage message, DateTime meetStartAt, Duration duration, String timeZoneCode) → Map<String, dynamic>
getActionRequestData(SchedulerMessage message, DateTime meetStartAt, Duration duration, String timeZoneCode) → Map<String, dynamic>
getAvailabilityJson(Map<String, List<TimeRange>>? availability) → Map<String, List>
getAvailableSlots(DateTime selectedDateTime, String messageTimeZone, String localTimeZone, Map<String, List<TimeRange>>? availability) → List<DateTimeRange<DateTime>>
getConvertedTime(DateTime baseDate, String utcZone) → DateTime
getFormattedTime(DateTime time, TimeFormat timeFormat) → String
getSchedulerTitle(SchedulerMessage schedulerMessage, BuildContext context) → String
getTimeZoneIdentifiers(String zone) → String
isDateSelectable(DateTime selectedDate, DateTime? from, DateTime? to, Map<String, Map<String, dynamic>> blockedDates, Map<String, List<TimeRange>>? availability) → bool
isScheduleButtonDisabled(SchedulerMessage schedulerMessage) → bool
nearestSelectableDate(DateTime selectedDay, DateTime? from, DateTime? to, Map<String, Map<String, dynamic>> blockedDates, Map<String, List<TimeRange>>? availability) → DateTime
parseICS(String icsContent, String timeZone) → Map<String, Map<String, dynamic>>

Constants

weekdays → const List<String>