toggleExpand method

void toggleExpand()

toggleExpand this method allows you to reverse the expansion or not of the child columns.

Implementation

void toggleExpand() => childrenExpanded = !childrenExpanded;