Honoring Asian Pacific American Heritage Month. See how.

VmoMatcher class

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

A matcher for testing the structure of Inspect data written to a VMO.

This matcher aggregates errors from attempting to access or match values stored in the VMO. The set of aggregated errors may be taken and reset using the |errors| getter for the purposes of unit testing an Inspect hierarchy.

Note that this class is not optimized for efficiency, and should only be used in tests.


VmoMatcher (VmoHolder _holder)

Create a new matcher that matches against the given VmoHolder.


errors → List<String>

Gets the list of errors.

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


node() NodeMatcher

Retrieve the root node matcher, which can be used to match against nested properties and children.

noSuchMethod(Invocation invocation) dynamic

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

resetErrors() void

Resets the recorded errors from this VmoMatcher.

toString() String

A string representation of this object.


operator ==(Object other) bool

The equality operator.