Matcher class

Matcher selector: marks the node it is applied to as part of the result set. With subset only the sliced span of a string/bytes node is matched; onlyIf gates the match on a Condition; label and index annotate the match for result labelling.

Inheritance

Constructors

Matcher({Slice? subset, String? label, int? index, Condition? onlyIf})
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
index → int?
final
label → String?
final
onlyIf → Condition?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subset → Slice?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toNode() → IPLDNode
Encode this selector as an IPLDNode using the official compact DAG-CBOR/DAG-JSON selector schema.
override
toString() → String
A string representation of this object.
inherited

Operators

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