operator [] method

Node? operator [](
  1. String edgeName
)

Returns the target of an outgoing edge with the given name (if any).

Implementation

Node? operator [](String edgeName) =>
    edges.firstWhereOrNull((e) => e.name == edgeName)?.target;