tryExpand method

bool tryExpand([
  1. PanelSibling direction = PanelSibling.both
])

Implementation

bool tryExpand([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
      ._attemptExpandCollapsed(activePane.index, direction.direction);
}