hasLink method

bool hasLink(
  1. Node from,
  2. Node to
)

Implementation

bool hasLink(Node from, Node to) {
  return links.any((l) => l.from == from && l.to == to);
}