removeAllUserScripts method

Future<void> removeAllUserScripts()

Removes all the user scripts from the webpage’s content.

NOTE for iOS and MacOS: this method will throw an error if the PlatformWebViewCreationParams.windowId has been set. There isn't any way to add/remove user scripts specific to window WebViews. This is a limitation of the native WebKit APIs.

Officially Supported Platforms/Implementations:

Implementation

Future<void> removeAllUserScripts() {
  throw UnimplementedError(
      'removeAllUserScripts is not implemented on the current platform');
}