hasUserScript method
Returns true if the userScript has been already added, otherwise false.
Officially Supported Platforms/Implementations:
- Android native WebView
- iOS
- MacOS
- Windows
Implementation
@override
bool hasUserScript({required UserScript userScript}) {
return _userScripts[userScript.injectionTime]?.contains(userScript) ??
false;
}