NiceFeatureFlagManager class

Manages feature flags for the current tenant/user.

Constructors

NiceFeatureFlagManager()

Properties

allFlags List<String>
Get all flag keys.
no setter
hashCode int
The hash code for this object.
no setterinherited
onFlagChanged Stream<String>
Stream of flag keys that have changed.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
flagsForModule(String moduleId) List<NiceFeatureFlag>
Get all flags for a module.
isEnabled(String key) bool
Check if a feature is enabled.
isModuleEnabled(String moduleId) bool
Check if a module is enabled (all flags for that module must be enabled).
loadFlags(List<Map<String, dynamic>> flagsJson) → void
Load flags from server response JSON.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setFlag(String key, bool enabled) → void
Set a flag locally (e.g. from admin panel).
toString() String
A string representation of this object.
inherited

Operators

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