onTargetInfoChanged property

Stream<TargetInfo> get onTargetInfoChanged

Issued when some information about a target has changed. This only happens between targetCreated and targetDestroyed.

Implementation

Stream<TargetInfo> get onTargetInfoChanged => _client.onEvent
    .where((event) => event.name == 'Target.targetInfoChanged')
    .map(
      (event) => TargetInfo.fromJson(
        event.parameters['targetInfo'] as Map<String, dynamic>,
      ),
    );