detachFromTarget method

Future<void> detachFromTarget({
  1. SessionID? sessionId,
  2. @Deprecated('This parameter is deprecated') TargetID? targetId,
})

Detaches session with given id. sessionId Session to detach.

Implementation

Future<void> detachFromTarget(
    {SessionID? sessionId,
    @Deprecated('This parameter is deprecated') TargetID? targetId}) async {
  await _client.send('Target.detachFromTarget', {
    if (sessionId != null) 'sessionId': sessionId,
    if (targetId != null) 'targetId': targetId,
  });
}