setWeeklyDoNotDisturb static method
Future<void>
setWeeklyDoNotDisturb({
- required List<
DndSchedule> dndSchedules, - String timezone = 'UTC',
Sets weekly do-not-disturb schedules for the current User.
If this option is enabled,
the current User does not receive push notification during the specified time windows on each day of the week.
@since 4.10.0
Implementation
static Future<void> setWeeklyDoNotDisturb({
required List<DndSchedule> dndSchedules,
String timezone = 'UTC',
}) async {
sbLog.i(StackTrace.current);
await _instance._chat.setWeeklyDoNotDisturb(
dndSchedules: dndSchedules,
timezone: timezone,
);
}