setAutoDarkModeOverride method
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,
});
}