configuration property

List<UDisksConfigurationItem> configuration

The configuration for the device. Use the addConfigurationItem, removeConfigurationItem and updateConfigurationItem methods to add, remove and update configuration items. Use getSecretConfiguration to get the secrets (e.g. passphrases) that may be part of the configuration but isn't exported in this property for security reasons.

Implementation

List<UDisksConfigurationItem> get configuration {
  var value = _object.getCachedProperty(_blockInterfaceName, 'Configuration');
  if (value == null) {
    return [];
  }
  if (value.signature != DBusSignature('a(sa{sv})')) {
    return [];
  }

  return (value as DBusArray)
      .children
      .map((e) => _parseConfigurationItem(e as DBusStruct))
      .toList();
}