AirshipFeatureFlagManager class
Feature flag manager
Constructors
- AirshipFeatureFlagManager(AirshipModule module)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
statusUpdates
→ Stream<
FeatureFlagStatusChangedEvent> -
A stream of feature flag status changed events.
no setter
Methods
-
flag(
String name, {bool useResultCache = true}) → Future< FeatureFlag> -
Gets and evaluates a feature flag with the given
name. -
getFlagFromResultCache(
String flagName) → Future< FeatureFlag?> - Gets a flag from the result cache. Returns null if the flag is not cached or the cached value has expired.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeFlagFromResultCache(
String flagName) → Future< void> - Removes a flag from the result cache.
-
setFlagInResultCache(
FeatureFlag flag, Duration ttl) → Future< void> -
Sets a flag in the result cache with the given
ttl. -
status(
) → Future< FeatureFlagStatus> - Gets the current on-device status of the feature flag listing.
-
toString(
) → String -
A string representation of this object.
inherited
-
trackInteraction(
FeatureFlag flag) → Future< void> - Tracks interaction with feature flag
-
waitRefresh(
{Duration? maxTime}) → Future< void> -
Suspends until the feature flag listing is up to date, or
maxTimeelapses. Waits indefinitely ifmaxTimeis not provided.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited