getAlbums method

Stream<Iterable<PlaylistSearchResult>> getAlbums(
  1. String query, {
  2. int offset = defaultOffset,
  3. int limit = defaultLimit,
})

Searches for albums matching the provided query.

Search results are offset by the specified offset, with each batch containing limit results.

Implementation

Stream<Iterable<PlaylistSearchResult>> getAlbums(
  String query, {
  int offset = defaultOffset,
  int limit = defaultLimit
}) => search(
  query,
  searchFilter: SearchFilter.albums,
  offset: offset,
  limit: limit
).map((b) => b.cast<PlaylistSearchResult>());