PlatformDownloadJobController.static constructor

PlatformDownloadJobController.static()

Creates a new empty PlatformDownloadJobController to access static methods.

Implementation

factory PlatformDownloadJobController.static() {
  assert(
    InAppWebViewPlatform.instance != null,
    'A platform implementation for `flutter_inappwebview_forge` has not been set.',
  );
  final PlatformDownloadJobController controller = InAppWebViewPlatform
      .instance!
      .createPlatformDownloadJobControllerStatic();
  PlatformInterface.verify(controller, _token);
  return controller;
}