hasUserScript method

bool hasUserScript({
  1. required UserScript userScript,
})

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

Officially Supported Platforms/Implementations:

  • Android native WebView
  • iOS
  • MacOS

Implementation

bool hasUserScript({required UserScript userScript}) =>
    platform.hasUserScript(userScript: userScript);