spotube/lib/provider/spotify/artist/related.dart
2024-03-17 11:09:26 +06:00

10 lines
275 B
Dart

part of '../spotify.dart';
final relatedArtistsProvider =
FutureProvider.family<List<Artist>, String>((ref, artistId) async {
final spotify = ref.watch(spotifyProvider);
final artists = await spotify.artists.relatedArtists(artistId);
return artists.toList();
});