tryCollapse method
Implementation
bool tryCollapse([PanelSibling direction = PanelSibling.both]) {
if (value.collapsed) {
return false;
}
assert(_attachedState != null, 'State is not attached');
final activePane = _attachedState!._activePane;
assert(activePane != null, 'ActivePane is not attached');
return activePane!._containerState
._attemptCollapse(activePane.index, direction.direction);
}