getMachineId method
Gets the machine ID of the client at the given destination
.
If destination
is not set, gets the machine the D-Bus server is running on.
Implementation
Future<String> getMachineId(
[String destination = 'org.freedesktop.DBus']) async {
var result = await callMethod(
destination: destination,
path: DBusObjectPath.root,
interface: 'org.freedesktop.DBus.Peer',
name: 'GetMachineId',
replySignature: DBusSignature('s'));
return result.returnValues[0].asString();
}