getNode method

Node<T>? getNode(
  1. String nodeId
)

Gets a node by its ID.

Returns null if the node doesn't exist.

Parameters:

  • nodeId: The ID of the node to retrieve

Returns the node if found, otherwise null.

Implementation

Node<T>? getNode(String nodeId) => _nodes[nodeId];