mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-16 09:05:16 +00:00
11 lines
245 B
Dart
11 lines
245 B
Dart
part of '../spotify.dart';
|
|
|
|
final artistProvider =
|
|
FutureProvider.autoDispose.family((ref, String artistId) {
|
|
ref.cacheFor();
|
|
|
|
final spotify = ref.watch(spotifyProvider);
|
|
|
|
return spotify.invoke((api) => api.artists.get(artistId));
|
|
});
|