AvailableSuggestion class

A partial completion suggestion that can be used in combination with info from completion.results to build completion suggestions for not yet imported library tokens.

Constructors

AvailableSuggestion(String label, String declaringLibraryUri, Element element, {String? defaultArgumentListString, List<int>? defaultArgumentListTextRanges, List<String>? parameterNames, List<String>? parameterTypes, List<String>? relevanceTags, int? requiredParameterCount})

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.
final
defaultArgumentListString String?
A default String for use in generating argument list source contents on the client side.
final
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.
final
element Element
Information about the element reference being suggested.
final
hashCode int
The hash code for this object.
no setterinherited
label String
The identifier to present to the user for code completion.
final
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.
final
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.
final
relevanceTags List<String>?
This field is set if the relevance of this suggestion might be changed depending on where completion is requested.
final
requiredParameterCount int?
final
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
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

parse(Map m) AvailableSuggestion