getTopTracks method

  1. @Deprecated('Use [topTracks] instead')
Future<Iterable<Track>> getTopTracks(
  1. String artistId,
  2. String country
)

Returns the top tracks of an artist with its artistId inside a country

Implementation

@Deprecated('Use [topTracks] instead')
Future<Iterable<Track>> getTopTracks(String artistId, String country) {
  var contains = Market.values.asNameMap().containsKey(country);
  assert(contains == true,
      'The country code $country does not match with any Market enum value');
  return topTracks(artistId, Market.values.asNameMap()[country]!);
}