Switch to lazyBox

This commit is contained in:
Matthias Rupp 2022-10-17 16:40:51 +02:00
parent d310c77fc8
commit d08475d5af
6 changed files with 23 additions and 22 deletions

View file

@ -26,7 +26,7 @@ class AssetNotifier extends StateNotifier<List<AssetResponseDto>> {
if (_assetCacheService.isValid() && state.isEmpty) {
stopwatch.start();
state = await _assetCacheService.getAsync();
state = await _assetCacheService.get();
debugPrint("Reading assets from cache: ${stopwatch.elapsedMilliseconds}ms");
stopwatch.reset();
}