dispose method
Disposes the web message channel.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Linux WPE WebKit:
- Implemented via JavaScript MessageChannel API.
- Windows WebView2:
- Implemented via JavaScript MessageChannel API.
Use the PlatformWebMessageChannel.isMethodSupported method to check if this method is supported at runtime.
Implementation
void dispose() => platform.dispose();