blob: dd068245fc4b461b50211851791719947e4b4de0 [file] [log] [blame] [view]
# NodeMatcher class
*[<Null safety>](https://dart.dev/null-safety)*
<p>Matcher for a particular Node in the VMO.</p>
<p>NodeMatchers may be valid or invalid. A valid NodeMatcher refers to
an actual node stored in the VMO, while an invalid NodeMatcher represents
a node that could not be found. The creation of an invalid NodeMatcher
records an error in the top-level matcher, and operations on it have
no effect.</p>
## Properties
##### [errors](../package-fuchsia_inspect_testing/NodeMatcher/errors.md) &#8594; List&lt;String>
Gets the list of errors.
_read-only_
##### [hashCode](../package-fuchsia_inspect_testing/NodeMatcher/hashCode.md) &#8594; int
The hash code for this object.
_read-only, inherited_
##### [runtimeType](../package-fuchsia_inspect_testing/NodeMatcher/runtimeType.md) &#8594; Type
A representation of the runtime type of the object.
_read-only, inherited_
## Methods
##### [at](../package-fuchsia_inspect_testing/NodeMatcher/at.md)(List&lt;String> path) [NodeMatcher](../package-fuchsia_inspect_testing/NodeMatcher-class.md)
Get a NodeMatcher for the node at the given path below this one.
##### [missingChild](../package-fuchsia_inspect_testing/NodeMatcher/missingChild.md)(String name) void
Asserts that this Node does not have the named child.
##### [noSuchMethod](../package-fuchsia_inspect_testing/NodeMatcher/noSuchMethod.md)(Invocation invocation) dynamic
Invoked when a non-existent method or property is accessed.
_inherited_
##### [property](../package-fuchsia_inspect_testing/NodeMatcher/property.md)(String name) [PropertyMatcher](../package-fuchsia_inspect_testing/PropertyMatcher-class.md)
Get a PropertyMatcher for a property on this node.
##### [propertyEquals](../package-fuchsia_inspect_testing/NodeMatcher/propertyEquals.md)(String name, dynamic val) [PropertyMatcher](../package-fuchsia_inspect_testing/PropertyMatcher-class.md)
Checks that a property of this node equals the given value.
##### [propertyNotEquals](../package-fuchsia_inspect_testing/NodeMatcher/propertyNotEquals.md)(String name, dynamic val) [PropertyMatcher](../package-fuchsia_inspect_testing/PropertyMatcher-class.md)
Checks that a property of this node exists but does not equal the given value.
##### [resetErrors](../package-fuchsia_inspect_testing/NodeMatcher/resetErrors.md)() void
Resets the recorded errors from the parent matcher.
##### [toString](../package-fuchsia_inspect_testing/NodeMatcher/toString.md)() String
A string representation of this object.
_inherited_
## Operators
##### [operator ==](../package-fuchsia_inspect_testing/NodeMatcher/operator_equals.md)(Object other) bool
The equality operator.
_inherited_