OrgFreedesktopUPowerKbdBacklight constructor

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

Implementation

OrgFreedesktopUPowerKbdBacklight(
  DBusClient client,
  String destination, {
  DBusObjectPath path = const DBusObjectPath.unchecked(
    '/org/freedesktop/UPower/KbdBacklight',
  ),
}) : super(client, name: destination, path: path) {
  brightnessChanged =
      DBusRemoteObjectSignalStream(
        object: this,
        interface: 'org.freedesktop.UPower.KbdBacklight',
        name: 'BrightnessChanged',
        signature: DBusSignature('i'),
      ).asBroadcastStream().map(
        (signal) => OrgFreedesktopUPowerKbdBacklightBrightnessChanged(signal),
      );

  brightnessChangedWithSource =
      DBusRemoteObjectSignalStream(
        object: this,
        interface: 'org.freedesktop.UPower.KbdBacklight',
        name: 'BrightnessChangedWithSource',
        signature: DBusSignature('is'),
      ).asBroadcastStream().map(
        (signal) =>
            OrgFreedesktopUPowerKbdBacklightBrightnessChangedWithSource(
              signal,
            ),
      );
}