reset method

  1. @override
void reset({
  1. bool keepExpandedNodes = false,
})

Resets the entire state of this controller and populates visibleNodes with the children of rootNode.

Useful when a top level node needs to be deleted.

Implementation

@override
void reset({bool keepExpandedNodes = false}) {
  super.reset(keepExpandedNodes: keepExpandedNodes);
  notifyListeners();
}