AvailableSuggestion class

AvailableSuggestion

{ "label": String "declaringLibraryUri": String "element": Element "defaultArgumentListString": optional String "defaultArgumentListTextRanges": optional List

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

Constructors

AvailableSuggestion(String label, String declaringLibraryUri, Element element, {String? defaultArgumentListString, List<int>? defaultArgumentListTextRanges, List<String>? parameterNames, List<String>? parameterTypes, List<String>? relevanceTags, int? requiredParameterCount})
AvailableSuggestion.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object? json)
factory

Properties

declaringLibraryUri String
The URI of the library that declares the element being suggested, not the URI of the library associated with the enclosing AvailableSuggestionSet.
getter/setter pair
defaultArgumentListString String?
A default String for use in generating argument list source contents on the client side.
getter/setter pair
defaultArgumentListTextRanges List<int>?
Pairs of offsets and lengths describing 'defaultArgumentListString' text ranges suitable for use by clients to set up linked edits of default argument source contents. For example, given an argument list string 'x, y', the corresponding text range 0, 1, 3, 1, indicates two text ranges of length 1, starting at offsets 0 and 3. Clients can use these ranges to treat the 'x' and 'y' values specially for linked edits.
getter/setter pair
element Element
Information about the element reference being suggested.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
label String
The identifier to present to the user for code completion.
getter/setter pair
parameterNames List<String>?
If the element is an executable, the names of the formal parameters of all kinds - required, optional positional, and optional named. The names of positional parameters are empty strings. Omitted if the element is not an executable.
getter/setter pair
parameterTypes List<String>?
If the element is an executable, the declared types of the formal parameters of all kinds - required, optional positional, and optional named. Omitted if the element is not an executable.
getter/setter pair
relevanceTags List<String>?
This field is set if the relevance of this suggestion might be changed depending on where completion is requested.
getter/setter pair
requiredParameterCount int?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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.
toString() String
A string representation of this object.
override

Operators

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