HoverInformation class

HoverInformation

{ "offset": int "length": int "containingLibraryPath": optional String "containingLibraryName": optional String "containingClassDescription": optional String "dartdoc": optional String "elementDescription": optional String "elementKind": optional String "isDeprecated": optional bool "parameter": optional String "propagatedType": optional String "staticType": optional String }

Clients may not extend, implement or mix-in this class.

Constructors

HoverInformation(int offset, int length, {String? containingLibraryPath, String? containingLibraryName, String? containingClassDescription, String? dartdoc, String? elementDescription, String? elementKind, bool? isDeprecated, String? parameter, String? propagatedType, String? staticType})
HoverInformation.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object? json)
factory

Properties

containingClassDescription String?
A human-readable description of the class declaring the element being referenced. This data is omitted if there is no referenced element, or if the element is not a class member.
getter/setter pair
containingLibraryName String?
The URI of the containing library, examples here include "dart:core", "package:.." and file uris represented by the path on disk, "/..". The data is omitted if the element is declared inside an HTML file.
getter/setter pair
containingLibraryPath String?
The path to the defining compilation unit of the library in which the referenced element is declared. This data is omitted if there is no referenced element, or if the element is declared inside an HTML file.
getter/setter pair
dartdoc String?
The dartdoc associated with the referenced element. Other than the removal of the comment delimiters, including leading asterisks in the case of a block comment, the dartdoc is unprocessed markdown. This data is omitted if there is no referenced element, or if the element has no dartdoc.
getter/setter pair
elementDescription String?
A human-readable description of the element being referenced. This data is omitted if there is no referenced element.
getter/setter pair
elementKind String?
A human-readable description of the kind of element being referenced (such as "class" or "function type alias"). This data is omitted if there is no referenced element.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
isDeprecated bool?
True if the referenced element is deprecated.
getter/setter pair
length int
The length of the range of characters that encompasses the cursor position and has the same hover information as the cursor position.
getter/setter pair
offset int
The offset of the range of characters that encompasses the cursor position and has the same hover information as the cursor position.
getter/setter pair
parameter String?
A human-readable description of the parameter corresponding to the expression being hovered over. This data is omitted if the location is not in an argument to a function.
getter/setter pair
propagatedType String?
The name of the propagated type of the expression. This data is omitted if the location does not correspond to an expression or if there is no propagated type information.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
staticType String?
The name of the static type of the expression. This data is omitted if the location does not correspond to an expression.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object>
Returns a JSON presentation of the object.
toString() String
A string representation of this object.
override

Operators

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