CodeFunctionPrompt class
The function autocomplate prompt.
- Inheritance
-
- Object
- CodePrompt
- CodeFunctionPrompt
Constructors
-
CodeFunctionPrompt({required String word, required String type, Map<
String, String> parameters = const {}, Map<String, String> optionalParameters = const {}, 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
-
optionalParameters
→ Map<
String, String> -
The function optional parameters.
final
-
parameters
→ Map<
String, String> -
The function required parameters.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
The function return type.
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