mirror of
https://github.com/KRTirtho/spotube.git
synced 2026-05-09 16:54:37 +00:00
10 lines
275 B
Dart
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();
|
|
});
|