spotube/lib/provider/spotify/artist/is_following.dart
2024-03-13 19:42:31 +06:00

11 lines
301 B
Dart

part of '../spotify.dart';
final artistIsFollowingProvider = FutureProvider.family(
(ref, String artistId) async {
final spotify = ref.watch(spotifyProvider);
return spotify.me.checkFollowing(FollowingType.artist, [artistId]).then(
(value) => value[artistId] ?? false,
);
},
);