hasLoop method

bool hasLoop(
  1. Node loop
)

Implementation

bool hasLoop(Node loop) {
  return loops.any((l) => l.from == loop);
}