closeDocument method
Closes the currently-open offscreen document for the extension. |callback|: Invoked when the offscreen document has been closed.
Implementation
Future<void> closeDocument() async {
await promiseToFuture<void>($js.chrome.offscreen.closeDocument());
}