setBrightness method

Future<void> setBrightness(
  1. Brightness brightness
)

Sets the brightness of the window.

Implementation

Future<void> setBrightness(Brightness brightness) async {
  final Map<String, dynamic> arguments = {
    'brightness': brightness.name,
  };
  await _channel.invokeMethod('setBrightness', arguments);
}