import 'dart:io'; import 'package:dbus/dbus.dart'; class ComExampleTest extends DBusRemoteObject { ComExampleTest(DBusClient client, String destination, DBusObjectPath path) : super(client, name: destination, path: path); /// Invokes com.example.Test.Hello() Future callHello({bool noAutoStart = false, bool allowInteractiveAuthorization = false}) async { var result = await callMethod('com.example.Test', 'Hello', [], replySignature: DBusSignature('s'), noAutoStart: noAutoStart, allowInteractiveAuthorization: allowInteractiveAuthorization); return result.returnValues[0].asString(); } }