setAdBlockingEnabled method

Future<void> setAdBlockingEnabled(
  1. bool enabled
)

Enable Chrome's experimental ad filter on all sites. enabled Whether to block ads.

Implementation

Future<void> setAdBlockingEnabled(bool enabled) async {
  await _client.send('Page.setAdBlockingEnabled', {
    'enabled': enabled,
  });
}