dispose method

void dispose()

Disposes of the WebView resources and resets the initialization state.

Note: This will destroy the chat session. Only call this when you want to completely reset the chat (e.g., on user logout).

Implementation

void dispose() {
  _webViewController = null;
  _webViewWidget = null;
  _isInitialized = false;
}