static bool isActivePage(String? currentPage, ActionModel? action) { if (action is GotoPage) { return action.pageID == currentPage; } return false; }