findTransition method
Implementation
Transition findTransition(EventNode ev) {
var prev = root;
var here = root.next;
while (here != null) {
if (findTransitionPredicate(ev, here)) break;
prev = here;
here = here.next;
}
return Transition(
before: prev == root ? null : prev.ev,
after: here != null ? here.ev : null,
prev: prev,
here: here);
}