Google is committed to advancing racial equity for Black communities. See how.

NodeMatcher class

*[<Null safety>](https://dart.dev/null-safety)*

Matcher for a particular Node in the VMO.

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.

Properties

errors → List<String>

Gets the list of errors.
read-only

hashCode → int

The hash code for this object. ...
read-only, inherited

runtimeType → Type

A representation of the runtime type of the object.
read-only, inherited

Methods

at(List<String> path) NodeMatcher

Get a NodeMatcher for the node at the given path below this one. ...

missingChild(String name) void

Asserts that this Node does not have the named child.

noSuchMethod(Invocation invocation) dynamic

Invoked when a non-existent method or property is accessed. ...
inherited

property(String name) PropertyMatcher

Get a PropertyMatcher for a property on this node. ...

propertyEquals(String name, dynamic val) PropertyMatcher

Checks that a property of this node equals the given value.

propertyNotEquals(String name, dynamic val) PropertyMatcher

Checks that a property of this node exists but does not equal the given value.

resetErrors() void

Resets the recorded errors from the parent matcher.

toString() String

A string representation of this object. ...
inherited

Operators

operator ==(Object other) bool

The equality operator. ...
inherited