port2 property
The second PlatformWebMessagePort object of the 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 PlatformWebMessageChannelCreationParams.isPropertySupported method to check if this property is supported at runtime.
Implementation
PlatformWebMessagePort get port2 => params.port2;