LspCompletion class

Represents a completion item in the LSP (Language Server Protocol). This class is used internally by the CodeForge widget to display completion suggestions.

Constructors

LspCompletion({required String label, required CompletionItemType itemType, required Map<String, dynamic> completionItem, String? reference, List<String>? importUri})

Properties

completionItem ↔ Map<String, dynamic>
The raw completion details returned by the LSP server.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
icon → Icon
The icon associated with the completion item, determined by its type.
final
importUri → List<String>?
importUri provides the URI needed to import the file where the referenced item is defined.
final
itemType → CompletionItemType
The type of the completion item, which determines the icon and color used to represent it. The icon is determined by the completionItemIcons map.
final
label → String
The label of the completion item, which is displayed in the completion suggestions.
final
reference → String?
reference specifies the symbol or entity within the codebase that this item refers to.
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
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

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