UserPreferencesModel constructor

const UserPreferencesModel({
  1. bool globalNotificationsEnabled = true,
  2. bool soundEnabled = true,
  3. bool vibrationEnabled = true,
  4. bool badgeEnabled = true,
  5. NotificationAlertStyle alertStyle = NotificationAlertStyle.banner,
  6. bool showPreviews = true,
  7. bool groupNotifications = true,
  8. bool notificationHistory = true,
  9. bool criticalAlertsEnabled = false,
  10. bool scheduledDelivery = false,
  11. QuietHoursSettings quietHours = const QuietHoursSettings(),
  12. Map<String, CategoryPreference> categoryPreferences = const <String, CategoryPreference>{},
  13. List<String> blockedSenders = const <String>[],
  14. List<String> allowedSenders = const <String>[],
  15. DateTime? lastUpdated,
})

Creates a new user preferences model.

Implementation

const UserPreferencesModel({
  this.globalNotificationsEnabled = true,
  this.soundEnabled = true,
  this.vibrationEnabled = true,
  this.badgeEnabled = true,
  this.alertStyle = NotificationAlertStyle.banner,
  this.showPreviews = true,
  this.groupNotifications = true,
  this.notificationHistory = true,
  this.criticalAlertsEnabled = false,
  this.scheduledDelivery = false,
  this.quietHours = const QuietHoursSettings(),
  this.categoryPreferences = const <String, CategoryPreference>{},
  this.blockedSenders = const <String>[],
  this.allowedSenders = const <String>[],
  this.lastUpdated,
});