toggleExpansion method

void toggleExpansion(
  1. Tree node
)

Method for programmatically toggling the expansion state of a TreeNode. If the TreeNode is in expanded state, then it will be collapsed. Else if the TreeNode is in collapsed state, then it will be expanded.

Implementation

void toggleExpansion(Tree node) =>
    _animatedListController.expansionBehaviourController
        .toggleExpansion(node);