SecretService constructor

SecretService(
  1. DBusClient client,
  2. String destination, {
  3. DBusObjectPath path = const DBusObjectPath.unchecked('/org/freedesktop/secrets'),
})

Implementation

SecretService(
  DBusClient client,
  String destination, {
  DBusObjectPath path = const DBusObjectPath.unchecked('/org/freedesktop/secrets'),
}) : super(client, name: destination, path: path) {
  collectionCreated = DBusRemoteObjectSignalStream(
    object: this,
    interface: 'org.freedesktop.Secret.Service',
    name: 'CollectionCreated',
    signature: DBusSignature('o'),
  ).asBroadcastStream().map((signal) => SecretServiceCollectionCreated(signal));

  collectionDeleted = DBusRemoteObjectSignalStream(
    object: this,
    interface: 'org.freedesktop.Secret.Service',
    name: 'CollectionDeleted',
    signature: DBusSignature('o'),
  ).asBroadcastStream().map((signal) => SecretServiceCollectionDeleted(signal));

  collectionChanged = DBusRemoteObjectSignalStream(
    object: this,
    interface: 'org.freedesktop.Secret.Service',
    name: 'CollectionChanged',
    signature: DBusSignature('o'),
  ).asBroadcastStream().map((signal) => SecretServiceCollectionChanged(signal));
}