mirror of
https://github.com/KRTirtho/spotube.git
synced 2026-05-08 16:24:36 +00:00
12 lines
307 B
Dart
12 lines
307 B
Dart
part of '../spotify.dart';
|
|
|
|
final relatedArtistsProvider = FutureProvider.autoDispose
|
|
.family<List<Artist>, String>((ref, artistId) async {
|
|
ref.cacheFor();
|
|
|
|
final spotify = ref.watch(spotifyProvider);
|
|
final artists = await spotify.artists.relatedArtists(artistId);
|
|
|
|
return artists.toList();
|
|
});
|