FeatureFlagRuntime class

The runtime behind the generated FeatureFlags registry. Static by default (build-time enabled set), dynamic through gates and providers.

Constructors

FeatureFlagRuntime({required Set<String> enabled, Set<String> disabled = const {}, Map<String, List<FeatureGate>> gates = const {}, Resolvers? resolvers, Map<String, CustomGateHandler> customGates = const {}, FeatureFlagProvider? provider})

Properties

enabledFeatures → List<String>
The features enabled for this build (static set — US3.AC3).
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

isEnabled(String name) → bool
Provider short-circuit, then static set membership, then gate evaluation (SC-003).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveVariant(String feature) → String
Active variant for feature: a when no variant gate is declared (single default variant, US5.AC3), otherwise the variant resolver's pick (default resolver: first declared variant).
toString() → String
A string representation of this object.
inherited

Operators

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