setAutoDarkModeOverride method

Future<void> setAutoDarkModeOverride({
  1. bool? enabled,
})

Automatically render all web contents using a dark theme. enabled Whether to enable or disable automatic dark mode. If not specified, any existing override will be cleared.

Implementation

Future<void> setAutoDarkModeOverride({bool? enabled}) async {
  await _client.send('Emulation.setAutoDarkModeOverride', {
    if (enabled != null) 'enabled': enabled,
  });
}