StaticOrRuntimeIntKnob class

A GroupOfKnobs for an integer control that can be static or runtime.

Static configurations resolve to their integer value. Runtime configurations resolve to a StaticOrRuntimeControl that creates a named Logic input with the selected width.

Inheritance

Constructors

StaticOrRuntimeIntKnob({int? staticValue = 0, int runtimeWidth = 8, String name = 'Integer Control'})
Creates a static-or-runtime integer control.

Properties

hashCode → int
The hash code for this object.
no setterinherited
isRuntime → bool
Whether this knob generates a runtime input.
no setter
modeKnob → ChoiceConfigKnob<StaticOrRuntimeIntMode>
Selects whether the control is static or runtime-configurable.
final
name → String
The name of this group.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
runtimeWidthKnob → IntConfigKnob
Width of the generated runtime input.
final
staticValueKnob → IntOptionalConfigKnob
The static value, or null when the component should infer its default.
final
subKnobs → Map<String, ConfigKnob>
A mapping from a sub-knob name to a corresponding sub-ConfigKnob.
no setteroverride
value ↔ String
The primary value being stored in this knob.
getter/setter pairinherited

Methods

loadJson(Map<String, dynamic> decodedJson) → void
Reconfigures this knob based on the provided deserialized JSON.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(String runtimeInputName) → dynamic
Resolves to a static value or a named runtime StaticOrRuntimeControl.
toJson() → Map<String, dynamic>
Serializes this knob into a JSON-compatible map.
override
toString() → String
A string representation of this object.
inherited

Operators

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