NotificationSettingsEntity constructor
const
NotificationSettingsEntity({
- bool isEnabled = true,
- bool allowSound = true,
- bool allowVibration = true,
- bool allowLights = true,
- bool allowBadge = true,
- String? soundPath,
- List<
int> ? vibrationPattern, - bool quietHoursEnabled = false,
- TimeOfDay? quietHoursStart,
- TimeOfDay? quietHoursEnd,
- Map<
String, NotificationChannelSettings> channels = const <String, NotificationChannelSettings>{}, - 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>{},
});