childrenExpanded property

bool childrenExpanded

childrenExpanded returns true if the children nested to this column have been expanded.

Implementation

bool get childrenExpanded =>
    children?.isNotEmpty == true && _childrenExpanded;
void childrenExpanded=(bool value)

childrenExpanded allows you to expand or not the columns nested within this one.

Implementation

set childrenExpanded(bool value) {
  if (children != null) {
    _childrenExpanded = value;
    if (!_childrenExpanded) {
      for (var child in children!) {
        child.childrenExpanded = false;
      }
    }
    notifyListeners();
  }
}