AlarmModel constructor

AlarmModel({
  1. required int id,
  2. required DateTime dateTime,
  3. required String assetAudioPath,
  4. bool loopAudio = true,
  5. double fadeDuration = 0.0,
  6. String? notificationTitle,
  7. String? notificationBody,
  8. bool enableNotificationOnKill = true,
  9. bool monday = false,
  10. bool tuesday = false,
  11. bool wednesday = false,
  12. bool thursday = false,
  13. bool friday = false,
  14. bool saturday = false,
  15. bool sunday = false,
  16. bool active = false,
  17. int snooze = 8,
  18. int musicTime = 10,
  19. double incMusicTime = 5.0,
  20. double musicVolume = 1.0,
  21. 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});