toggleNode method
- TreeSliverNode<
Object?> node
Switches the given TreeSliverNodes expanded state.
May trigger an animation to reveal or hide the node's children based on the TreeSliver.toggleAnimationStyle.
If the node does not have any children, nothing will happen.
Implementation
void toggleNode(TreeSliverNode<Object?> node) {
assert(_state != null);
return _state!.toggleNode(node);
}