Fired when remote debugging connection is about to be terminated. Contains detach reason.
Stream<String> get onDetached => _client.onEvent .where((event) => event.name == 'Inspector.detached') .map((event) => event.parameters['reason'] as String);