getCapturedTabs method
Returns a list of tabs that have requested capture or are being captured, i.e. status != stopped and status != error. This allows extensions to inform the user that there is an existing tab capture that would prevent a new tab capture from succeeding (or to prevent redundant requests for the same tab). |callback| : Callback invoked with CaptureInfo[] for captured tabs.
Implementation
Future<List<CaptureInfo>> getCapturedTabs() async {
var $res =
await promiseToFuture<JSArray>($js.chrome.tabCapture.getCapturedTabs());
return $res.toDart
.cast<$js.CaptureInfo>()
.map((e) => CaptureInfo.fromJS(e))
.toList();
}