navigateToByNode method

void navigateToByNode({
  1. required MAJNode nodeTo,
})

allows navigation to a node by a reference to a node this will make the MAJBuilder change the currently displayed node to the passed node ex: context.read

Implementation

void navigateToByNode({
  required MAJNode nodeTo,
}) {
  currentNode = nodeTo;
  notifyListeners();
}