hasWebMessageListener method

bool hasWebMessageListener(
  1. PlatformWebMessageListener webMessageListener
)

Returns true if the webMessageListener has been already added, otherwise false.

Officially Supported Platforms/Implementations:

  • Android native WebView
  • iOS
  • MacOS

Implementation

bool hasWebMessageListener(PlatformWebMessageListener webMessageListener) {
  throw UnimplementedError(
      'hasWebMessageListener is not implemented on the current platform');
}