Google celebrates Hispanic Heritage Month. See how.

NodeMatcher class

*[<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.


errors → List<String>

Gets the list of errors.

hashCode → int

The hash code for this object.

runtimeType → Type

A representation of the runtime type of the object.


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.

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.


operator ==(Object other) bool

The equality operator.