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