FeatureFlagValue class sealed

Sealed class representing different types of feature flag values

Implementers

Constructors

FeatureFlagValue.boolean(bool value)
Boolean feature flag value
const
factory
FeatureFlagValue.fromDynamic(dynamic value)
Create from dynamic value with type inference
factory
FeatureFlagValue.json(Map<String, dynamic> value)
JSON feature flag value (Map<String, dynamic>)
const
factory
FeatureFlagValue.number(num value)
Number feature flag value (supports both int and double)
const
factory
FeatureFlagValue.string(String value)
String feature flag value
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
rawValue → dynamic
Get the raw value as dynamic
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
typeName String
Get the type name as string
no setter

Methods

asType<T>() → T?
Get value as specific type, returns null if types don't match
isType<T>() bool
Check if the value is of a specific type
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Convert to string representation
override

Operators

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