triggerAction method

Future<void> triggerAction(
  1. String id,
  2. String targetId
)

Runs an extension default action. Available if the client is connected using the --remote-debugging-pipe flag and the --enable-unsafe-extension-debugging flag is set. id Extension id. targetId A tab target ID to trigger the default extension action on.

Implementation

Future<void> triggerAction(String id, String targetId) async {
  await _client.send('Extensions.triggerAction', {
    'id': id,
    'targetId': targetId,
  });
}