ScreenInfoManager class
Gestor singleton que mantiene el ScreenInfo globalmente accesible. Permite usar las extensiones sin necesidad de pasar el BuildContext. Se actualiza automáticamente cuando cambia el tamaño de pantalla.
Constructors
- ScreenInfoManager()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- info → ScreenInfo
-
Obtiene el ScreenInfo actual. Lanza un error si no se ha inicializado.
no setter
- isInitialized → bool
-
Verifica si el manager ha sido inicializado.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateInfo(
ScreenInfo newInfo) → void - Actualiza el ScreenInfo. Solo debe ser llamado por ScreenSizeInitializer.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited