FeatureFlag class
A model representing a feature flag with its state and source information.
Constructors
- FeatureFlag({required String key, required dynamic defaultValue, dynamic overrideValue, List? options, bool isForced = false, bool isRemote = false})
-
const
Properties
- defaultValue → dynamic
-
The fallback value if no remote or local override exists.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isForced → bool
-
Whether this flag is currently forced by a remote configuration,
preventing local overrides.
final
- isRemote → bool
-
Whether the current effective value (if not overridden) comes from a remote source.
final
- key → String
-
The unique identifier for the feature flag.
final
- options → List?
-
Optional list of permitted values for this flag (e.g., for selection UI).
final
- overrideValue → dynamic
-
The locally stored value that overrides the default or remote value.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → FeatureFlagSource
-
Determines the source of the current effective value.
no setter
- type → Type
-
The runtime type of the flag's value.
no setter
- value → dynamic
-
The effective value of the feature flag, prioritizing local overrides.
no setter
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.
inherited