getBrightness method
Get the current keyboard backlight brightness level.
Implementation
Future<int> getBrightness() async {
var result = await _object.callMethod(
'org.freedesktop.UPower.KbdBacklight', 'GetBrightness', [],
replySignature: DBusSignature('i'));
return (result.returnValues[0] as DBusInt32).value;
}