ConfigController class
Controlador de configuración que maneja una sola config final Local config → Remote config (si existe) → Config final
Constructors
- ConfigController({ObslyStorage? storage, IdManager? idManager, ObslyToolsController? toolsController, ObslyApiClient? apiClient})
Properties
- config → ObslyConfig?
-
LA configuración final del SDK (acceso global)
no setter
- configSourceInfo → ConfigSourceInfo?
-
Información sobre el origen de cada parámetro de configuración
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInitialized → bool
-
Verifica si está inicializado
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → Future< void> - Limpia configuración (para testing)
-
forceRefreshRemoteConfig(
{required String apiKey, required String instanceURL, String? remoteConfigURL, String? appVersion, bool? proEnv}) → Future< void> - Fuerza actualización de remote config
-
initialize(
{required ObslyConfig localConfig, required String apiKey, required String instanceURL, String? remoteConfigURL, String? appVersion, String? appName, String? userId, String? release, bool? proEnv}) → Future< void> - Inicializa con configuración local, luego intenta obtener remote
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resetForTesting(
) → Future< void> - Reset para testing (alias para clear)
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → ConfigController
-
no setter