NotificationsClient constructor

NotificationsClient({
  1. DBusClient? bus,
})

Creates a new notification client. If bus is provided connect to the given D-Bus server.

Implementation

NotificationsClient({DBusClient? bus})
    : _bus = bus ?? DBusClient.session(),
      _closeBus = bus == null {
  _object = DBusRemoteObject(_bus,
      name: 'org.freedesktop.Notifications',
      path: DBusObjectPath('/org/freedesktop/Notifications'));
}