ClientFeatureRepository class

Constructors

ClientFeatureRepository()

Properties

analyticsEvent Stream<AnalyticsEvent>
no setter
availableFeatures Iterable<String?>
no setter
catchAndReleaseMode bool
getter/setter pair
clientContext ClientContext
final
hashCode int
The hash code for this object.
no setterinherited
newFeatureStateAvailableStream Stream<ClientFeatureRepository>
no setter
readyness Readyness
no setter
readynessStream Stream<Readyness>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

exists(String key) bool
@param key The feature key returns true if the feature key exists, otherwise false
feature(String? key) FeatureStateHolder
returns FeatureStateHolder if feature key exists or null if the feature value is not set or does not exist
getFeatureState(String? key) FeatureStateHolder
returns FeatureStateHolder if feature key exists or null if the feature value is not set or does not exist
getFlag(String key) bool?
@param key The feature key @returns A boolean (flag) feature value or null if the feature does not exist.
getJson(String key) → dynamic
@param key The feature key @returns The value of the json feature or null if the feature value not set or does not exist
getNumber(String key) num?
@param key The feature key @returns The value of the number feature or null if the feature value not set or does not exist
getString(String key) String?
@param key The feature key @returns The value of the string feature or null if the feature value not set or does not exist
isEnabled(String key) bool
isSet(String key) bool
logAnalyticsEvent(String action, {Map<String, Object>? other}) → void
allows us to log an analytics event with this set of features
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify(SSEResultState? state, dynamic data) → void
used by a provider of features to tell the repository about updates to those features. If you were storing features on your device you could use this to fill the repository before it was connected for example.
registerFeatureValueInterceptor(bool allowLockOverride, FeatureValueInterceptor fvi) → void
register an interceptor, indicating whether it is allowed to override the locking coming from the server
release({bool disableCatchAndRelease = false}) Future<void>
shutdown() → void
after this method is called, the repository is not usable, create a new one.
shutdownFeatures() → void
call this to clear the repository if you are swapping environments
toString() String
A string representation of this object.
inherited

Operators

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