PostHogFeatureFlagResult class
Represents the result of a feature flag evaluation.
Contains the flag key, whether it's enabled, the variant (for multivariate flags), and any associated payload.
Constructors
- PostHogFeatureFlagResult({required String key, required bool enabled, String? variant, Object? payload})
-
const
Properties
- enabled → bool
-
Whether the flag is enabled.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- key → String
-
The feature flag key.
final
- payload → Object?
-
The JSON payload associated with the flag, if any.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- variant → String?
-
The variant key for multivariate flags, or null for boolean flags.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromMap(
Object? result, String fallbackKey) → PostHogFeatureFlagResult? - Creates a PostHogFeatureFlagResult from a native SDK response map.