MixpanelFlagVariant class

Represents a feature flag variant with metadata.

Contains the flag's key, value, and optional experiment-related metadata.

Constructors

MixpanelFlagVariant({required String key, required dynamic value, String? experimentId, bool? isExperimentActive, bool? isQaTester})
MixpanelFlagVariant.fallback(String key, dynamic value)
Creates a fallback MixpanelFlagVariant with the given key and value.
factory
MixpanelFlagVariant.fromMap(Map map)
Creates a MixpanelFlagVariant from a Map (used for platform channel deserialization).
factory

Properties

experimentId String?
The experiment ID if this flag is part of an experiment.
final
hashCode int
The hash code for this object.
no setteroverride
isExperimentActive bool?
Whether the experiment is currently active.
final
isQaTester bool?
Whether the current user is a QA tester.
final
key String
The key/name of the feature flag.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → dynamic
The value of the feature flag variant. Can be any type: bool, String, int, double, Map, List, etc.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts this variant to a Map for serialization.
toString() String
A string representation of this object.
override

Operators

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