MediaPlayer2Playlists constructor

MediaPlayer2Playlists(
  1. DBusClient client,
  2. String destination, {
  3. DBusObjectPath path = const DBusObjectPath.unchecked('/org/mpris/MediaPlayer2'),
})

Implementation

MediaPlayer2Playlists(DBusClient client, String destination,
    {DBusObjectPath path =
        const DBusObjectPath.unchecked('/org/mpris/MediaPlayer2')})
    : super(client, name: destination, path: path) {
  playlistChanged = DBusRemoteObjectSignalStream(
          object: this,
          interface: 'org.mpris.MediaPlayer2.Playlists',
          name: 'PlaylistChanged',
          signature: DBusSignature('(oss)'))
      .asBroadcastStream()
      .map((signal) => MediaPlayer2PlaylistsPlaylistChanged(signal));
}