ConfigManagerImpl class
Implementation of ConfigManager
- Implemented types
Constructors
- ConfigManagerImpl.new({required CFConfig config, required ConfigFetcher configFetcher, SummaryManager? summaryManager, ConnectionManager? connectionManager})
- Create a new ConfigManagerImpl
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addConfigListener<
T> (String key, void listener(T)) → void -
Add a listener for a specific feature flag
override
-
clearConfigListeners(
String key) → void -
Clear all listeners for a specific feature flag
override
-
close(
) → void -
dumpConfigMap(
) → void -
Debug method to dump the entire config map in detail
override
-
getAllFlags(
) → Map< String, dynamic> -
Returns a map of all feature flags with their current values
override
-
getAllFullFlagConfigs(
) → Map< String, Map< String, dynamic> > - Get all full flag configs (including experience_behaviour_response)
-
getBoolean(
String key, bool defaultValue) → bool -
Get a boolean feature flag value
override
-
getConfigValue<
T> (String key, T defaultValue) → T -
Get a generic feature flag value
override
-
getFullFlagConfig(
String key) → Map< String, dynamic> ? -
Get full config data for a specific flag (including experience_behaviour_response)
override
-
getJson(
String key, Map< String, dynamic> defaultValue) → Map<String, dynamic> -
Get a JSON feature flag value
override
-
getNumber(
String key, num defaultValue) → num -
Get a number feature flag value
override
-
getSdkSettings(
) → SdkSettings? -
Get the current SDK settings
override
-
getString(
String key, String defaultValue) → String -
Get a string feature flag value
override
-
hasConfiguration(
) → bool -
Check if configuration is available (not empty)
override
-
isSdkFunctionalityEnabled(
) → bool -
Returns whether SDK functionality is currently enabled
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onConnectionStatusChanged(
ConnectionStatus status, ConnectionInformation info) → void -
Called when the connection status changes
override
-
refreshConfigs(
) → Future< bool> -
Manually trigger a refresh of configs
override
-
removeConfigListener<
T> (String key, void listener(T)) → void -
Remove a listener for a specific feature flag
override
-
setOfflineMode(
bool offline) → void - Set offline mode for the ConfigManager
-
setupListeners(
{required void onConfigChange(CFConfig), required SummaryManager summaryManager}) → void -
Setup configuration change listeners
This method centralizes the config change listener setup that was previously in CFClient
override
-
shutdown(
) → void -
Shutdown the config manager
override
-
toString(
) → String -
A string representation of this object.
inherited
-
updateConfigsFromClient(
Map< String, dynamic> newConfigs) → void -
Update configs directly from client
override
-
waitForInitialLoad(
) → Future< void> -
Wait for initial configuration load to complete
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited