createDocument method

Future<void> createDocument(
  1. CreateParameters parameters
)

Creates a new offscreen document for the extension. |parameters|: The parameters describing the offscreen document to create. |callback|: Invoked when the offscreen document is created and has completed its initial page load.

Implementation

Future<void> createDocument(CreateParameters parameters) async {
  await promiseToFuture<void>(
      $js.chrome.offscreen.createDocument(parameters.toJS));
}