Switch to plain fs based caching mechanism

This commit is contained in:
Matthias Rupp
2022-10-17 18:02:43 +02:00
parent d08475d5af
commit 6796462b13
6 changed files with 33 additions and 34 deletions

View File

@@ -14,7 +14,7 @@ class AlbumNotifier extends StateNotifier<List<AlbumResponseDto>> {
getAllAlbums() async {
if (_albumCacheService.isValid() && state.isEmpty) {
if (await _albumCacheService.isValid() && state.isEmpty) {
state = await _albumCacheService.get();
}