Before creating any WebviewController, you must initialize the shared WebView environment. This can be done once per application lifecycle. You can optionally specify a user data path, a specific browser executable path, and additional Chromium command-line arguments.
Note: This method throws a PlatformException if the environment has already been initialized.
await WebviewController.initializeEnvironment(
userDataPath: 'path/to/user/data',
browserExePath: 'path/to/browser.exe',
additionalArguments: ['--disable-web-security'],
);