NotificationPreferences constructor

NotificationPreferences({
  1. Map<String, NotificationChannel>? channels,
  2. bool doNotDisturb = false,
  3. DoNotDisturbSchedule? doNotDisturbSchedule,
  4. bool soundEnabled = true,
  5. bool groupByType = true,
})

Implementation

NotificationPreferences({
  Map<String, NotificationChannel>? channels,
  this.doNotDisturb = false,
  this.doNotDisturbSchedule,
  this.soundEnabled = true,
  this.groupByType = true,
}) : channels = channels ?? {};