mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
11 lines
245 B
Dart
11 lines
245 B
Dart
part of '../spotify.dart';
|
|
|
|
final trackProvider =
|
|
FutureProvider.autoDispose.family<Track, String>((ref, id) async {
|
|
ref.cacheFor();
|
|
|
|
final spotify = ref.watch(spotifyProvider);
|
|
|
|
return spotify.invoke((api) => api.tracks.get(id));
|
|
});
|