updateView method

void updateView(
  1. int viewId,
  2. String content
)

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;
  }
}