SearchHit class
One result: where it is, why it matched, and how well.
address is always set, so a hit is portable — the GUI opens it, fw
prints it, MCP returns it, and none of them needs a callback the others
cannot serialise. That is the whole reason this is data and not a
VoidCallback.
Constructors
Properties
- address → Address
-
Where the hit is. Always somewhere real: a result that named no
destination was never offered — see searchReport.
final
- group → String
-
The section this belongs under. The plugin's label, so results cluster
the way the sidebar does.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
matched
→ List<
int> -
Character indexes in title the query matched, for highlighting. Empty
when the match came from subtitle instead.
final
- reason → SearchReason
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- score → int
-
Ranking within a group. Higher is better; comparable only against hits
from the same query.
final
- subtitle → String?
-
final
- title → String
-
final
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