dispose method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(), IOSPlatform(), MacOSPlatform(), LinuxPlatform(note: 'Implemented via JavaScript MessageChannel API.'), WindowsPlatform(note: 'Implemented via JavaScript MessageChannel API.')])
- @override
override
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
@SupportedPlatforms(
platforms: [
AndroidPlatform(),
IOSPlatform(),
MacOSPlatform(),
LinuxPlatform(note: 'Implemented via JavaScript MessageChannel API.'),
WindowsPlatform(note: 'Implemented via JavaScript MessageChannel API.'),
],
)
@override
void dispose() {
throw UnimplementedError(
'dispose is not implemented on the current platform',
);
}