forElement abstract method
CompletionSuggestion?
forElement(
- Element element, {
- String? completion,
- CompletionSuggestionKind kind = CompletionSuggestionKind.INVOCATION,
- int relevance = DART_RELEVANCE_DEFAULT,
Return a suggestion based on the given element
, or null
if a
suggestion is not appropriate for the given element.
Implementation
CompletionSuggestion? forElement(Element element,
{String? completion,
CompletionSuggestionKind kind = CompletionSuggestionKind.INVOCATION,
int relevance = DART_RELEVANCE_DEFAULT});