getTargets method
Returns the list of available debug targets.
Implementation
Future<List<TargetInfo>> getTargets() async {
var $res = await promiseToFuture<JSArray>($js.chrome.debugger.getTargets());
return $res.toDart
.cast<$js.TargetInfo>()
.map((e) => TargetInfo.fromJS(e))
.toList();
}