blob: 70c6b108b5112e077e5e83c68875503161094706 [file] [log] [blame] [view]
# Node class
*[<Null safety>](https://dart.dev/null-safety)*
<p>A named node in the Inspect tree that can have <a href="../package-fuchsia_inspect_inspect/Node-class.md">Node</a>s and
properties under it.</p>
## Constructors
[Node.deleted](../package-fuchsia_inspect_inspect/Node/Node.deleted.md) ()
Creates a Node that never does anything.
## Properties
##### [hashCode](../package-fuchsia_inspect_inspect/Node/hashCode.md) &#8594; int
The hash code for this object.
_<span class="feature read-only">read-only</span><span class="feature inherited">inherited</span>_
##### [runtimeType](../package-fuchsia_inspect_inspect/Node/runtimeType.md) &#8594; Type
A representation of the runtime type of the object.
_<span class="feature read-only">read-only</span><span class="feature inherited">inherited</span>_
##### [valid](../package-fuchsia_inspect_inspect/Node/valid.md) &#8594; bool
Returns true only if this node is present in underlying storage.
_<span class="feature read-only">read-only</span>_
## Methods
##### [boolProperty](../package-fuchsia_inspect_inspect/Node/boolProperty.md)(String name) [BoolProperty](../package-fuchsia_inspect_inspect/BoolProperty-class.md)?
Returns an <a href="../package-fuchsia_inspect_inspect/BoolProperty-class.md">BoolProperty</a> with <code>name</code> on this node.
##### [byteDataProperty](../package-fuchsia_inspect_inspect/Node/byteDataProperty.md)(String name) [ByteDataProperty](../package-fuchsia_inspect_inspect/ByteDataProperty-class.md)?
Returns a <a href="../package-fuchsia_inspect_inspect/ByteDataProperty-class.md">ByteDataProperty</a> with <code>name</code> on this node.
##### [child](../package-fuchsia_inspect_inspect/Node/child.md)(String name) [Node](../package-fuchsia_inspect_inspect/Node-class.md)?
Returns a child <a href="../package-fuchsia_inspect_inspect/Node-class.md">Node</a> with <code>name</code>.
##### [delete](../package-fuchsia_inspect_inspect/Node/delete.md)() void
Deletes this node and any children from underlying storage.
##### [doubleProperty](../package-fuchsia_inspect_inspect/Node/doubleProperty.md)(String name) [DoubleProperty](../package-fuchsia_inspect_inspect/DoubleProperty-class.md)?
Returns a <a href="../package-fuchsia_inspect_inspect/DoubleProperty-class.md">DoubleProperty</a> with <code>name</code> on this node.
##### [intProperty](../package-fuchsia_inspect_inspect/Node/intProperty.md)(String name) [IntProperty](../package-fuchsia_inspect_inspect/IntProperty-class.md)?
Returns an <a href="../package-fuchsia_inspect_inspect/IntProperty-class.md">IntProperty</a> with <code>name</code> on this node.
##### [noSuchMethod](../package-fuchsia_inspect_inspect/Node/noSuchMethod.md)(Invocation invocation) dynamic
Invoked when a non-existent method or property is accessed.
_<span class="feature inherited">inherited</span>_
##### [stringProperty](../package-fuchsia_inspect_inspect/Node/stringProperty.md)(String name) [StringProperty](../package-fuchsia_inspect_inspect/StringProperty-class.md)?
Returns a <a href="../package-fuchsia_inspect_inspect/StringProperty-class.md">StringProperty</a> with <code>name</code> on this node.
##### [toString](../package-fuchsia_inspect_inspect/Node/toString.md)() String
A string representation of this object.
_<span class="feature inherited">inherited</span>_
## Operators
##### [operator ==](../package-fuchsia_inspect_inspect/Node/operator_equals.md)(Object other) bool
The equality operator.
_<span class="feature inherited">inherited</span>_