resetValue method
Método que restablece las notificaciones a sus valores por defecto.
Activa las notificaciones generales, así como las diarias, de nuevos récords y de inactividad. Desactiva las demás por defecto.
Guarda los valores en SharedPreferences
y notifica a los listeners.
Implementation
void resetValue() async {
final prefs = AppNotification.preferences;
notification = AppNotification(
isActive: true,
dailyNotifications: true,
weeklyMotivation: false,
newRecordNotification: true,
trainingReminders: false,
inactivityNotification: true,
);
await notification.saveToPreferences(prefs);
notifyListeners();
}