switchTab method
Switches the current tab of the screen.
Implementation
void switchTab(CalendarScreenTab tab) {
if (currentTab == tab) return;
setState(() {
_actionBuilder = null;
currentTab = tab;
});
Modular.to.navigate('/calendar/${tab == CalendarScreenTab.plan ? 'plan' : 'tasks-overview'}');
}