UserPreferencesModel constructor
const
UserPreferencesModel({
- bool globalNotificationsEnabled = true,
- bool soundEnabled = true,
- bool vibrationEnabled = true,
- bool badgeEnabled = true,
- NotificationAlertStyle alertStyle = NotificationAlertStyle.banner,
- bool showPreviews = true,
- bool groupNotifications = true,
- bool notificationHistory = true,
- bool criticalAlertsEnabled = false,
- bool scheduledDelivery = false,
- QuietHoursSettings quietHours = const QuietHoursSettings(),
- Map<
String, CategoryPreference> categoryPreferences = const <String, CategoryPreference>{}, - List<
String> blockedSenders = const <String>[], - List<
String> allowedSenders = const <String>[], - 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,
});