setCurrentComponent method
Implementation
void setCurrentComponent(String componentName) {
previousComponent = currentComponent;
currentComponent = componentName;
notifyListeners();
}
void setCurrentComponent(String componentName) {
previousComponent = currentComponent;
currentComponent = componentName;
notifyListeners();
}