GetFlag class

Represents a feature flag and its associated variables. This class encapsulates information about a feature flag, including its enabled status and a list of variables with their values.

Constructors

GetFlag({required bool isEnabled, required List<Variable> variables})
Constructor
GetFlag.fromMap(Map<String, dynamic> map)
Factory constructor to create a Flag from a Map
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
variables List<Variable>
final

Methods

getVariable(String? key, dynamic defaultValue) → dynamic
Get a variable by key, returning a default value if not found
getVariables() List<Map<String, dynamic>>
Get a list of variables as a list of maps, excluding RECOMMENDATION type variables
isEnabled() bool
Returns whether the flag is enabled.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setIsEnabled(bool value) → void
Sets isEnabled.
toMap() Map<String, dynamic>
Method to convert Flag object to a map
toString() String
A string representation of this object.
override

Operators

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