CodeFieldPrompt class
The field autocomplate prompt. Compared to CodeKeywordPrompt, type definitions also need to be provided.
If a line of code is 'String foo;', 'foo' is the word and 'String' is the type.
- Inheritance
-
- Object
- CodePrompt
- CodeFieldPrompt
Constructors
- CodeFieldPrompt({required String word, required String type, CodeAutocompleteResult? customAutocomplete})
-
const
Properties
- autocomplete → CodeAutocompleteResult
-
Get the final auto completion content. In most cases it is equal to word, but there are some exceptions.
For example, for functions, auto completion of parameters may be required.
no setteroverride
- customAutocomplete → CodeAutocompleteResult?
-
Will use custom autocomplete rather than word if this is not null.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
The field type name.
final
- word → String
-
Content associated with user input.
finalinherited
Methods
-
match(
String input) → bool -
Check whether the input meets this prompt condition.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override