port1 property
The first 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 port1 => params.port1;