AppInfoCollector class
Gestor centralizado de información de la aplicación
Este gestor unifica toda la lógica relacionada con la información de la app:
- Permite configuración manual de nombre y versión (prioritaria)
- Usa fallback automático desde PackageInfo para ambientes nativos
- Funciona tanto en WEB como en NATIVO
- Proporciona una API consistente para acceder a los datos de la app
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInitialized → bool
-
Verifica si el manager está inicializado
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearManualConfig(
) → void - Limpia la configuración manual, volviendo al fallback automático
-
getAppInfo(
) → App - Obtiene el objeto App completo (optimizado con cache)
-
getAppName(
) → String - Obtiene el nombre de la aplicación Prioridad: Manual > PackageInfo > Fallback
-
getAppVersion(
) → String - Obtiene la versión de la aplicación Prioridad: Manual > PackageInfo > Fallback
-
getBuildNumber(
) → String? - Obtiene el build number Prioridad: Manual > PackageInfo > null
-
getBundleIdentifier(
) → String? - Obtiene el bundle identifier Prioridad: Manual > PackageInfo > null
-
getConfigSummary(
) → Map< String, dynamic> - Obtiene información de configuración para debugging
-
getEnvironment(
) → String - Obtiene el entorno de ejecución
-
getPlatform(
) → String - Obtiene el nombre de la plataforma
-
getRelease(
) → String? - Obtiene el release Solo manual, sin fallback automático
-
initialize(
{String? appName, String? appVersion, String? buildNumber, String? bundleIdentifier, String? release}) → Future< void> - Inicializa el manager de información de la app
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void - Reinicia el manager a su estado inicial
-
toString(
) → String -
A string representation of this object.
inherited
-
updateAppInfo(
{String? appName, String? appVersion, String? buildNumber, String? bundleIdentifier, String? release}) → void - Actualiza la configuración manual de la app
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → AppInfoCollector
-
no setter