callGetStatistics method
Invokes org.freedesktop.UPower.Device.GetStatistics()
Implementation
Future<List<List<DBusValue>>> callGetStatistics(
String type, {
bool noAutoStart = false,
bool allowInteractiveAuthorization = false,
}) async {
var result = await callMethod(
'org.freedesktop.UPower.Device',
'GetStatistics',
[DBusString(type)],
replySignature: DBusSignature('a(dd)'),
noAutoStart: noAutoStart,
allowInteractiveAuthorization: allowInteractiveAuthorization,
);
return result.returnValues[0]
.asArray()
.map((child) => child.asStruct())
.toList();
}