CodeInput class
Appears inline in the text field as a code input.
User can attach code snippets of any programming language from within their workspace.
Provide a hint to the user on the kind of the code snippet to attach with displayText.
For optional inputs, "NA" will be appended in steps if no code snippet is added by the user.
Examples:
final testMethod = CodeInput('Test Method');
final reference1 = CodeInput('Existing Reference', optional: true);
final reference2 = CodeInput('Existing Reference', optional: true);
final reference3 = CodeInput('Existing Reference', optional: true);
@override
List<DashInput> get registerInputs => [testMethod, reference1, reference2, reference3 ];
Constructors
Properties
- displayText → String
-
Hint Text
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- includeContextualCode → bool
-
includeContextualCode extracts the nested code objects and matching code files from the codebase.
final
- 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