NonNegativeIntConfigKnob class
An integer knob allowing zero and positive values, with no upper bound.
- Inheritance
-
- Object
- ConfigKnob<
int> - TextConfigKnob<
int> - IntConfigKnob
- NonNegativeIntConfigKnob
Constructors
- NonNegativeIntConfigKnob({required int value})
-
Creates a nonnegative knob with the specified initial
value.
Properties
- allowEmpty → bool
-
Whether the knob allows an empty string as input.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- minValue → int?
-
Inclusive lower bound, or
nullfor a signed, unbounded knob.finalinherited - 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
- valueString → String
-
A String representation of the value.
no setterinherited
Methods
-
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
-
setValueFromString(
String valueString) → void -
Sets the value from a String.
inherited
-
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