nc-photos/app/lib/entity/pref_util.dart

10 lines
366 B
Dart
Raw Normal View History

2021-12-05 13:02:22 +01:00
import 'package:nc_photos/account.dart';
2023-07-17 09:35:45 +02:00
import 'package:nc_photos/entity/pref.dart';
import 'package:nc_photos/entity/pref/provider/universal_storage.dart';
2021-12-05 13:02:22 +01:00
Future<AccountPref> loadAccountPref(Account account) async {
final provider = PrefUniversalStorageProvider("accounts/${account.id}/pref");
await provider.init();
return AccountPref.scoped(provider);
}