removeView method
Implementation
void removeView(int viewId) {
if (registeredViews.containsKey(viewId)) {
// Retrieve the HTML element
final html.Element viewElement = registeredViews[viewId]!;
// Remove the view from the document body
viewElement.remove();
// Remove the view from the map
registeredViews.remove(viewId);
}
}