setDiscoverTargets method

Future<void> setDiscoverTargets(
  1. bool discover, {
  2. TargetFilter? filter,
})

Controls whether to discover available targets and notify via targetCreated/targetInfoChanged/targetDestroyed events. discover Whether to discover available targets. filter Only targets matching filter will be attached. If discover is false, filter must be omitted or empty.

Implementation

Future<void> setDiscoverTargets(bool discover, {TargetFilter? filter}) async {
  await _client.send('Target.setDiscoverTargets', {
    'discover': discover,
    if (filter != null) 'filter': filter,
  });
}