CompletionGetSuggestions2Result class

completion.getSuggestions2 result

{ "replacementOffset": int "replacementLength": int "suggestions": List

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

Constructors

CompletionGetSuggestions2Result(int replacementOffset, int replacementLength, List<CompletionSuggestion> suggestions, bool isIncomplete)
CompletionGetSuggestions2Result.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object? json)
factory
CompletionGetSuggestions2Result.fromResponse(Response response)
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
isIncomplete bool
True if the number of suggestions after filtering was greater than the requested maxResults.
getter/setter pair
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 from 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
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suggestions List<CompletionSuggestion>
The completion suggestions being reported. This list is filtered by the already existing prefix, and sorted first by relevance, and (if the same) by the suggestion text. The list will have at most maxResults items. If the user types a new keystroke, the client is expected to either do local filtering (when the returned list was complete), or ask the server again (if isIncomplete was true).
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.
toResponse(String id) Response
Return a response whose result data is this object for the request with the given id.
toString() String
A string representation of this object.
override

Operators

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