mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
13 lines
339 B
Dart
13 lines
339 B
Dart
part of '../spotify.dart';
|
|
|
|
final artistIsFollowingProvider = FutureProvider.family(
|
|
(ref, String artistId) async {
|
|
final spotify = ref.watch(spotifyProvider);
|
|
return spotify.invoke(
|
|
(api) => api.me.checkFollowing(FollowingType.artist, [artistId]).then(
|
|
(value) => value[artistId] ?? false,
|
|
),
|
|
);
|
|
},
|
|
);
|