mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-12 23:45:18 +00:00
13 lines
334 B
Dart
13 lines
334 B
Dart
part of '../spotify.dart';
|
|
|
|
final albumsIsSavedProvider = FutureProvider.autoDispose.family<bool, String>(
|
|
(ref, albumId) async {
|
|
final spotify = ref.watch(spotifyProvider);
|
|
return spotify.invoke(
|
|
(api) => api.me.containsSavedAlbums([albumId]).then(
|
|
(value) => value[albumId] ?? false,
|
|
),
|
|
);
|
|
},
|
|
);
|