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