CurrentNotifications class

Provider para gestionar el estado actual de las notificaciones en la aplicación.

Este provider permite activar, desactivar, restablecer y personalizar los distintos tipos de notificaciones que ofrece la aplicación. Las configuraciones se almacenan en SharedPreferences para que persistan entre sesiones del usuario.

Inheritance

Constructors

CurrentNotifications()

Properties

hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
notification AppNotification
Configuraciones actuales de notificaciones, iniciando por si estan habilitadas/deshabilitadas según lo que se guardó en las preferencias de la aplicación.
getter/setter pair
prefs SharedPreferences
Preferencias de las notificaciones (SharedPreferences) de la aplicación.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
changeValue(String key, bool value) → void
Método que modifica un valor específico de configuración de notificación.
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
resetValue() → void
Método que restablece las notificaciones a sus valores por defecto.
toString() String
A string representation of this object.
inherited
turnOffValue() → void
Método que desactiva todas las notificaciones.

Operators

operator ==(Object other) bool
The equality operator.
inherited