pop method
Fonction permettant de revenir en arrière dans l'affichage des vues
Implementation
void pop(){
initializedView = false;
if (currentView != null){
if (currentView?.parent != null){
currentView!.parent!.updateData();
currentView = currentView!.parent;
}
else{
throw Exception("Impossible to get to previous page");
}
initializedView = true;
}
else{
throw Exception("Impossible to get to previous page");
}
}