closeDocument method

Future<void> closeDocument()

Closes the currently-open offscreen document for the extension. |Returns|: Promise that resolves when the offscreen document has been closed.

Implementation

Future<void> closeDocument() async {
  await $js.chrome.offscreen.closeDocument().toDart;
}