getTracks method

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

Searches for tracks matching the provided query.

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

Implementation

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