AlarmModel constructor
AlarmModel({
- required int id,
- required DateTime dateTime,
- required String assetAudioPath,
- bool loopAudio = true,
- double fadeDuration = 0.0,
- String? notificationTitle,
- String? notificationBody,
- bool enableNotificationOnKill = true,
- bool monday = false,
- bool tuesday = false,
- bool wednesday = false,
- bool thursday = false,
- bool friday = false,
- bool saturday = false,
- bool sunday = false,
- bool active = false,
- int snooze = 8,
- int musicTime = 10,
- double incMusicTime = 5.0,
- double musicVolume = 1.0,
- double incMusicVolume = 0.5,
Implementation
AlarmModel(
{required this.id,
required this.dateTime,
required this.assetAudioPath,
this.loopAudio = true,
this.fadeDuration = 0.0,
this.notificationTitle,
this.notificationBody,
this.enableNotificationOnKill = true,
this.monday = false,
this.tuesday = false,
this.wednesday = false,
this.thursday = false,
this.friday = false,
this.saturday = false,
this.sunday = false,
this.active = false,
this.snooze = 8,
this.musicTime = 10,
this.incMusicTime = 5.0,
this.musicVolume = 1.0,
this.incMusicVolume = 0.5});