id property

String get id

Message Channel ID used internally.

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

String get id => params.id;