SearchResult class

SearchResult

{ "location": Location "kind": SearchResultKind "isPotential": bool "path": List

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

Constructors

SearchResult(Location location, SearchResultKind kind, bool isPotential, List<Element> path)
SearchResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object? json)
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
isPotential bool
True if the result is a potential match but cannot be confirmed to be a match. For example, if all references to a method m defined in some class were requested, and a reference to a method m from an unknown class were found, it would be marked as being a potential match.
getter/setter pair
kind SearchResultKind
The kind of element that was found or the kind of reference that was found.
getter/setter pair
location Location
The location of the code that matched the search criteria.
getter/setter pair
path List<Element>
The elements that contain the result, starting with the most immediately enclosing ancestor and ending with the library.
getter/setter pair
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, 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