instance static method
Gets the CookieManager shared instance.
webViewEnvironment
(Supported only on Windows) - Used to create the CookieManager using the specified environment.
Implementation
static CookieManager instance({WebViewEnvironment? webViewEnvironment}) {
if (webViewEnvironment == null) {
if (_instance == null) {
_instance = CookieManager();
}
return _instance!;
} else {
return CookieManager.fromPlatformCreationParams(
PlatformCookieManagerCreationParams(
webViewEnvironment: webViewEnvironment.platform));
}
}