closeTarget method
Closes the target. If the target is a page that gets closed too. Returns: Always set to true. If an error occurs, the response indicates protocol error.
Implementation
Future<bool> closeTarget(TargetID targetId) async {
var result = await _client.send('Target.closeTarget', {
'targetId': targetId,
});
return result['success'] as bool;
}