hasJavaScriptHandler method

bool hasJavaScriptHandler({
  1. required String handlerName,
})

Returns true if a JavaScript handler with handlerName already exists, otherwise false.

Officially Supported Platforms/Implementations:

  • Android native WebView
  • iOS
  • MacOS

Implementation

bool hasJavaScriptHandler({required String handlerName}) =>
    platform.hasJavaScriptHandler(handlerName: handlerName);