getNode<T extends ActorNode> method

T? getNode<T extends ActorNode>(
  1. String name
)

Implementation

T? getNode<T extends ActorNode>(String name) {
  for (final ActorNode? node in _nodes) {
    if (node is T && node.name == name) {
      return node;
    }
  }
  return null;
}