PlatformInternalStoragePathHandler constructor

PlatformInternalStoragePathHandler(
  1. PlatformInternalStoragePathHandlerCreationParams params
)

Creates a new PlatformInternalStoragePathHandler

Implementation

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