setBrightness static method

Future<void> setBrightness(
  1. BuildContext context,
  2. Brightness brightness
)

Sets the brightness of the window.

Implementation

static Future<void> setBrightness(
  BuildContext context,
  Brightness brightness,
) {
  return YaruWindow.of(context).setBrightness(brightness);
}