Goal<T>.node constructor

const Goal<T>.node(
  1. T node
)

Creates a goal that matches a specific node.

The first node that matches Object.== of node is considered the goal.

Implementation

const factory Goal.node(T node) = _NodeGoal<T>;