addView method
Implementation
void addView(View newView) {
if (newView.isChild) {
return;
}
if (newView is CustomNavBarView) {
add(newView.getNavBarComponent());
} else {
final navBarButton = SimpleNavBarButton()
..viewPath = newView.id
..caption = newView.caption
..href = fullPathOfView(newView);
add(navBarButton);
}
}