KnowledgeNotice class final
Something a search reports besides its passages: a stable code, the sentence message, and the paths it concerns.
A host tells notices apart by code, never by their text. text is what
wayfinder search prints after Notice: and lists under notices in its
JSON.
Constructors
-
KnowledgeNotice(KnowledgeNoticeCode code, String message, {Iterable<
String> paths = const [], String? target, ProjectBundle? bundle})
Properties
- bundle → ProjectBundle?
-
The bundle it concerns, in the notices of a project search, which ranks
several bundles together; null in one bundle's own response.
final
- code → KnowledgeNoticeCode
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
The sentence for a reader, without the code or the name of the bundle
it concerns, such as
An index refresh is running; these results come from the last completed index.final -
paths
→ List<
String> -
Bundle-relative paths it concerns, sorted:
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- target → String?
-
The link target or source path as written, for
KnowledgeNoticeCode.unresolvedRelationship and
KnowledgeNoticeCode.unresolvedSource; otherwise null.
final
- text → String
-
The line
wayfinder searchprints afterNotice:and lists undernoticesin its JSON: message, after its code and a colon forrefresh-in-progressandsource-changed, as the command has always printed them, and after the bundle's name and a colon when it has one.no setter
Methods
-
about(
ProjectBundle bundle) → KnowledgeNotice -
This notice, about
bundle. -
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