StaticOrRuntimeBoolKnob class
A ConfigKnob for a boolean control that can be static or runtime.
- Inheritance
-
- Object
- ConfigKnob<
StaticOrRuntimeBoolMode> - ChoiceConfigKnob<
StaticOrRuntimeBoolMode> - StaticOrRuntimeBoolKnob
Constructors
- StaticOrRuntimeBoolKnob({StaticOrRuntimeBoolMode value = StaticOrRuntimeBoolMode.disabled})
- Creates a static-or-runtime boolean selection knob.
Properties
-
choiceLabels
→ Map<
StaticOrRuntimeBoolMode, String> -
Stable labels used for both display and JSON serialization.
finalinherited
-
choices
↔ List<
StaticOrRuntimeBoolMode> -
The available choices to choose from.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value ↔ StaticOrRuntimeBoolMode
-
The primary value being stored in this knob.
getter/setter pairinherited
Methods
-
labelFor(
StaticOrRuntimeBoolMode choice) → String -
Returns the user-facing label for
choice.inherited -
loadJson(
Map< String, dynamic> decodedJson) → void -
Reconfigures this knob based on the provided deserialized JSON.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
String runtimeInputName) → dynamic - Returns the static value or a named runtime input for this selection.
-
toJson(
) → Map< String, dynamic> -
Serializes this knob into a JSON-compatible map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited