NotificationSettingsEntity constructor

const NotificationSettingsEntity({
  1. bool isEnabled = true,
  2. bool allowSound = true,
  3. bool allowVibration = true,
  4. bool allowLights = true,
  5. bool allowBadge = true,
  6. String? soundPath,
  7. List<int>? vibrationPattern,
  8. bool quietHoursEnabled = false,
  9. TimeOfDay? quietHoursStart,
  10. TimeOfDay? quietHoursEnd,
  11. Map<String, NotificationChannelSettings> channels = const <String, NotificationChannelSettings>{},
  12. Map<String, NotificationGroupSettings> groupSettings = const <String, NotificationGroupSettings>{},
})

Creates a new notification settings entity.

Implementation

const NotificationSettingsEntity({
  this.isEnabled = true,
  this.allowSound = true,
  this.allowVibration = true,
  this.allowLights = true,
  this.allowBadge = true,
  this.soundPath,
  this.vibrationPattern,
  this.quietHoursEnabled = false,
  this.quietHoursStart,
  this.quietHoursEnd,
  this.channels = const <String, NotificationChannelSettings>{},
  this.groupSettings = const <String, NotificationGroupSettings>{},
});