ListOfKnobsKnob class
A knob wich holds a collection of other ConfigKnobs.
- Inheritance
-
- Object
- ConfigKnob<
int> - ListOfKnobsKnob
Constructors
- ListOfKnobsKnob({required int count, required ConfigKnob generateKnob(int index), String name = 'List'})
-
Creates a new collection of
count
knobs, each initially generated by generateKnob, and named name.
Properties
- count ↔ int
-
The number of elements in the collection.
getter/setter pair
- generateKnob → ConfigKnob Function(int index)
-
A function that should generate the initial ConfigKnob for the
index
th element in the collection.final - hashCode → int
-
The hash code for this object.
no setterinherited
-
knobs
→ List<
ConfigKnob> -
The List of
ConfigKnob
s collected by this knob.no setter - name → String
-
The name of this collection of knobs.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value ↔ int
-
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
-
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