# node method | |
*[<Null safety>](https://dart.dev/null-safety)* | |
[NodeMatcher](../../package-fuchsia_inspect_testing/NodeMatcher-class.md) node | |
() | |
<p>Retrieve the root node matcher, which can be used to match against | |
nested properties and children.</p> | |
## Implementation | |
```dart | |
NodeMatcher node() { | |
return NodeMatcher._valid(this, 0); | |
} | |
``` | |