AirshipFeatureFlagManager class
Feature flag manager
Constructors
- AirshipFeatureFlagManager.new(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
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. -
toString(
) → String -
A string representation of this object.
inherited
-
trackInteraction(
FeatureFlag flag) → Future< void> - Tracks interaction with feature flag
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited