UniTrackFirebaseRemoteConfig class

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

isActivated → bool
Whether activate completed at least once. Apps can use this to gate UI that only makes sense after RC has run (vd "Show experiment X").
no setter

Static Methods

activate({Map<String, dynamic> defaults = const {}, Duration minimumFetchInterval = const Duration(hours: 1), Duration fetchTimeout = const Duration(seconds: 10)}) → Future<void>
Fetch + activate Remote Config with sensible defaults.
getBool(String key, {bool defaultValue = false}) → bool
getDouble(String key, {double defaultValue = 0.0}) → double
getInt(String key, {int defaultValue = 0}) → int
getString(String key, {String defaultValue = ''}) → String
Convenience getters mirroring Firebase's typed accessors. App code can call these directly when it specifically wants RC (not the unified UniTrack resolver chain).
lookup<T>(String key) → T?
Synchronous lookup. Returns null if activate hasn't been called or the key has no value AND no default. Used internally by UniTrack's getRemoteValue resolver chain.