hasDocument method
Determines whether the extension has an active document. |Returns|: Promise that resolves with the result of whether the extension has an active offscreen document.
Implementation
Future<bool> hasDocument() async {
var $res = await $js.chrome.offscreen.hasDocument().toDart;
return $res.toDart;
}