updateView method
Implementation
void updateView(int viewId, String content) {
if (registeredViews.containsKey(viewId)) {
// Retrieve the HTML element
final html.Element viewElement = registeredViews[viewId]!;
// Update the content of the view
viewElement.innerHtml = content;
}
}