StringInput class

Appears inline in the text field as a string input.

Provide a hint to the user on what input to add with displayText.

For optional inputs, "NA" will be appended in steps if no value is provided by user.

Examples:

final userQuery = StringInput('Your query');
final additionalInstructions = StringInput('Additional Instructions', optional: true);

@override
List<DashInput> get registerInputs => [userQuery, additionalInstructions];
Inheritance

Constructors

StringInput(String displayText, {bool optional = false})

Properties

displayText String
Hint Text
finalinherited
hashCode int
The hash code for this object.
no setterinherited
optional bool
Marks the input as optional.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
version String
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
process() Future<Map<String, dynamic>>
override
toString() String
A string representation of this object.
inherited

Operators

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