mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-09 20:49:29 +00:00
18 lines
414 B
Dart
18 lines
414 B
Dart
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
|
import 'package:shelfsdk/audiobookshelf_api.dart';
|
|
import 'package:vaani/features/player/playlist.dart';
|
|
|
|
part 'playlist_provider.g.dart';
|
|
|
|
@riverpod
|
|
class Playlist extends _$Playlist {
|
|
@override
|
|
AudiobookPlaylist build() {
|
|
return AudiobookPlaylist();
|
|
}
|
|
|
|
void add(BookExpanded item) {
|
|
state.add(item);
|
|
ref.notifyListeners();
|
|
}
|
|
}
|