ZenithFeature class

Descriptor for a feature flag in flutter_zenith.

Feature flags control conditional rollouts, remote config toggles, and A/B tests.

const newCheckoutFeature = ZenithFeature('new_checkout', defaultValue: false);
Annotations

Constructors

ZenithFeature(String key, {bool defaultValue = false, String? name})
Creates a ZenithFeature descriptor.
const

Properties

defaultValue → bool
The fallback default boolean status if no remote override is set.
final
hashCode → int
The hash code for this object.
no setteroverride
key → String
The unique string identifier for this feature flag.
final
name → String?
Optional human-readable name or description for admin/debug portals.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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

percentageRollout(int percentage, {required String featureKey, required String userId}) → bool
Evaluates a deterministic percentage rollout for a specific userId.