InlayHint class
Represents an inlay hint to be displayed inline in the code editor.
Inlay hints are small pieces of text displayed inline with the code, typically showing type annotations, parameter names, or other contextual information from the language server.
Example:
InlayHint(
line: 10,
column: 15,
text: 'String',
kind: InlayHintKind.type,
)
Constructors
Properties
- column → int
-
The column (character position) where the inlay hint should appear (0-based)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- kind → InlayHintKind
-
The kind of inlay hint (type annotation or parameter name)
final
- line → int
-
The line where the inlay hint should appear (0-based)
final
-
location
→ Map<
String, dynamic> ? -
Optional location information for navigation
final
- paddingLeft → bool
-
Whether to add padding to the left of the hint
final
- paddingRight → bool
-
Whether to add padding to the right of the hint
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
The text content of the inlay hint
final
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