navigateTo method

void navigateTo({
  1. required String path,
})

pass a valid path ex /root/node this will make the MAJBuilder change the currently displayed node to the node with the path passed ex: context.read

Implementation

void navigateTo({
  required String path,
}) {
  currentNode = maps[mapKey]![path]!;
  notifyListeners();
}