canNextAlt method

bool canNextAlt()

Whether or not an nextAlt can be performed. This is the case when the tree is initialized and there is an nextAlt element.

Implementation

bool canNextAlt() => current != null && current!.nextAlt != null;