SearchResult class

A single result from a search request.

Constructors

SearchResult(Location location, String kind, bool isPotential, List<Element> path)

Properties

hashCode int
The hash code for this object.
no setterinherited
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.
final
kind String
The kind of element that was found or the kind of reference that was found.
final
location Location
The location of the code that matched the search criteria.
final
path List<Element>
The elements that contain the result, starting with the most immediately enclosing ancestor and ending with the library.
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
toString() String
A string representation of this object.
override

Operators

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

Static Methods

parse(Map m) SearchResult