onTargetDestroyed property
Issued when a target is destroyed.
Implementation
Stream<TargetID> get onTargetDestroyed => _client.onEvent
.where((event) => event.name == 'Target.targetDestroyed')
.map(
(event) => TargetID.fromJson(event.parameters['targetId'] as String));