minimize method

void minimize()

Minimizes the view.

Implementation

void minimize() {
  if (isMobile) {
    minimizedAnimation?.forward(from: minimizedAnimation?.value);
    if (panelController.isAttached) {
      panelController.close();
    }
  } else {
    minimized.value = true;
  }
}