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