import 'package:hive/hive.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:immich_mobile/constants/hive_box.dart'; final localStorageServiceProvider = Provider((_) => LocalStorageService()); class LocalStorageService { late Box _box; LocalStorageService() { _box = Hive.box(userInfoBox); } T get(String key) { return _box.get(key); } put(String key, T value) { return _box.put(key, value); } }