NexusFlags class
Feature flags & remote config. Call load to evaluate all flags for the current user, then read them synchronously.
Constructors
- NexusFlags(NexusHttp _http, NexusIdentity _id, NexusConfig _cfg)
Properties
Methods
-
isEnabled(
String key) → bool - True when a boolean flag is on, or a multivariate flag has any variant.
-
load(
{Map< String, Object?> ? properties}) → Future<void> - Evaluate every flag for the current person + properties and cache the result.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
payload(
String key) → Object? - The remote-config payload for a flag, if any.
-
toString(
) → String -
A string representation of this object.
inherited
-
variant(
String key) → String? - The variant key for a multivariate flag, or null.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited