onTargetDestroyed property

Stream<TargetID> get onTargetDestroyed

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));