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. |Returns|: Promise that resolves when the offscreen document is created and has completed its initial page load.

Implementation

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