forElement abstract method

CompletionSuggestion? forElement(
  1. Element element, {
  2. String? completion,
  3. CompletionSuggestionKind kind = CompletionSuggestionKind.INVOCATION,
  4. 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});