PlatformWebStorageManager constructor

PlatformWebStorageManager(
  1. PlatformWebStorageManagerCreationParams params
)

Creates a new PlatformCookieManager

Implementation

factory PlatformWebStorageManager(
    PlatformWebStorageManagerCreationParams params) {
  assert(
    InAppWebViewPlatform.instance != null,
    'A platform implementation for `flutter_inappwebview` has not been set. Please '
    'ensure that an implementation of `InAppWebViewPlatform` has been set to '
    '`WebViewPlatform.instance` before use. For unit testing, '
    '`WebViewPlatform.instance` can be set with your own test implementation.',
  );
  final PlatformWebStorageManager cookieManager =
      InAppWebViewPlatform.instance!.createPlatformWebStorageManager(params);
  PlatformInterface.verify(cookieManager, _token);
  return cookieManager;
}