CompletionGetSuggestions2Params class
completion.getSuggestions2 params
{ "file": FilePath "offset": int "maxResults": int "completionCaseMatchingMode": optional CompletionCaseMatchingMode }
Clients may not extend, implement or mix-in this class.
Constructors
- CompletionGetSuggestions2Params(String file, int offset, int maxResults, {CompletionCaseMatchingMode? completionCaseMatchingMode, CompletionMode? completionMode, int? invocationCount, int? timeout})
- CompletionGetSuggestions2Params.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object? json)
-
factory
- CompletionGetSuggestions2Params.fromRequest(Request request)
-
factory
Properties
- completionCaseMatchingMode ↔ CompletionCaseMatchingMode?
-
The mode of code completion being invoked. If no value is provided,
MATCH_FIRST_CHAR will be assumed.
getter/setter pair
- completionMode ↔ CompletionMode?
-
The mode of code completion being invoked. If no value is provided, BASIC
will be assumed. BASIC is also the only currently supported.
getter/setter pair
- file ↔ String
-
The file containing the point at which suggestions are to be made.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- invocationCount ↔ int?
-
The number of times that the user has invoked code completion at the same
code location, counting from 1. If no value is provided, 1 will be
assumed.
getter/setter pair
- maxResults ↔ int
-
The maximum number of suggestions to return. If the number of suggestions
after filtering is greater than the maxResults, then isIncomplete is set
to true.
getter/setter pair
- offset ↔ int
-
The offset within the file at which suggestions are to be made.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout ↔ int?
-
The approximate time in milliseconds that the server should spend. The
server will perform some steps anyway, even if it takes longer than the
specified timeout. This field is intended to be used for benchmarking,
and usually should not be provided, so that the default timeout is used.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object> - Returns a JSON presentation of the object.
-
toRequest(
String id) → Request -
Return a request whose parameters are taken from this object and that has
the given
id
. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override