AlarmSettings constructor
const
AlarmSettings({
- required int id,
- required DateTime dateTime,
- required String assetAudioPath,
- bool loopAudio = true,
- bool vibrate = true,
- bool volumeMax = true,
- double fadeDuration = 0.0,
- String? notificationTitle,
- String? notificationBody,
- bool enableNotificationOnKill = true,
- bool stopOnNotificationOpen = false,
- bool androidFullScreenIntent = true,
Model that contains all the settings to customize and set an alarm.
Note that if you want to show a notification when alarm is triggered,
both notificationTitle
and notificationBody
must not be null nor empty.
Implementation
const AlarmSettings({
required this.id,
required this.dateTime,
required this.assetAudioPath,
this.loopAudio = true,
this.vibrate = true,
this.volumeMax = true,
this.fadeDuration = 0.0,
this.notificationTitle,
this.notificationBody,
this.enableNotificationOnKill = true,
this.stopOnNotificationOpen = false,
this.androidFullScreenIntent = true,
});