getCriticalAction method

Future<String> getCriticalAction()

Gets the action the system will take when the power supply is critical.

Implementation

Future<String> getCriticalAction() async {
  var result = await _root.callMethod(
      'org.freedesktop.UPower', 'GetCriticalAction', [],
      replySignature: DBusSignature('s'));
  return (result.returnValues[0] as DBusString).value;
}