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

NodeMatcher class

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

errorsList<String>

Gets the list of errors.
read-only

hashCodeint

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

runtimeTypeType

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

Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool

The equality operator. ...
inherited