CompletionGetSuggestionsResult class

completion.getSuggestions result

{ "replacementOffset": int "replacementLength": int "results": List

Clients may not extend, implement or mix-in this class.


CompletionGetSuggestionsResult(int replacementOffset, int replacementLength, List<CompletionSuggestion> results)
CompletionGetSuggestionsResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object? json)
CompletionGetSuggestionsResult.fromResponse(Response response)


hashCode int
The hash code for this object.
no setteroverride
replacementLength int
The length of the text to be replaced if the remainder of the identifier containing the cursor is to be replaced when the suggestion is applied (that is, the number of characters in the existing identifier).
getter/setter pair
replacementOffset int
The offset of the start of the text to be replaced. This will be different than the offset used to request the completion suggestions if there was a portion of an identifier before the original offset. In particular, the replacementOffset will be the offset of the beginning of said identifier.
getter/setter pair
results List<CompletionSuggestion>
The completion suggestions being reported. The notification contains all possible completions at the requested cursor position, even those that do not match the characters the user has already typed. This allows the client to respond to further keystrokes from the user without having to make additional requests.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
toJson() Map<String, Object>
Returns a JSON presentation of the object.
toResponse(String id, int requestTime) Response
Return a response whose result data is this object for the request with the given id, where the request was received at the given requestTime.
toString() String
A string representation of this object.


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