overrideMacOSBrightness static method

Future<void> overrideMacOSBrightness({
  1. required bool dark,
})

Overrides the brightness setting of the window.

Implementation

static Future<void> overrideMacOSBrightness({
  required bool dark,
}) async {
  await _completer.future;
  await _windowManipulatorMethodChannel.invokeMethod(
    'overrideMacOSBrightness',
    {
      'dark': dark,
    },
  );
}