DBusAddress constructor
DBusAddress(
- String address
Creates a new address from the given address
string, e.g. 'unix:path=/run/user/1000/bus'.
Implementation
factory DBusAddress(String address) {
// Addresses are in the form 'transport:key1=value1,key2=value2'
var index = address.indexOf(':');
if (index < 0) {
throw FormatException(
'Unable to determine transport of D-Bus address: $address');
}
var transport = address.substring(0, index);
var properties = _parseProperties(address.substring(index + 1));
return DBusAddress.withTransport(transport, properties);
}