collapseAll method

void collapseAll({
  1. bool notify = true,
})

Collapses all nodes in the tree.

Implementation

void collapseAll({bool notify = true}) {
  traverse((node) => node.collapse(notify: false));
  if (notify) notifyListeners();
}