AppNotification constructor

AppNotification({
  1. bool isActive = true,
  2. bool dailyNotifications = true,
  3. bool weeklyMotivation = false,
  4. bool newRecordNotification = true,
  5. bool trainingReminders = false,
  6. bool inactivityNotification = true,
})

Constructor de la clase AppNotification.

Por defecto, si las notificaciones están activadas (isActive = true), también se activan por defecto las notificaciones diarias, de nuevos récords e inactividad.

Implementation

AppNotification({
  this.isActive = true,
  this.dailyNotifications = true,
  this.weeklyMotivation = false,
  this.newRecordNotification = true,
  this.trainingReminders = false,
  this.inactivityNotification = true,
});