FeatureFlags class

Core class for using Mixpanel Feature Flags.

The FeatureFlags object is used to access feature flag values and metadata. Feature flags allow you to control feature rollout and run experiments.

Constructors

FeatureFlags(String token)

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

areFlagsReady() Future<bool>
Check if feature flags have been loaded and are ready to use.
getVariant(String flagName, MixpanelFlagVariant fallback) Future<MixpanelFlagVariant>
Get the full variant for a feature flag, including metadata.
getVariantValue(String flagName, dynamic fallbackValue) Future
Get just the value of a feature flag.
isEnabled(String flagName, bool fallbackValue) Future<bool>
Check if a boolean feature flag is enabled.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateContext(Map<String, dynamic> context, {Map<String, dynamic>? options}) Future<void>
Update the context used for feature flag evaluation.

Operators

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