mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
9 lines
366 B
Dart
9 lines
366 B
Dart
import 'package:nc_photos/account.dart';
|
|
import 'package:nc_photos/entity/pref.dart';
|
|
import 'package:nc_photos/entity/pref/provider/universal_storage.dart';
|
|
|
|
Future<AccountPref> loadAccountPref(Account account) async {
|
|
final provider = PrefUniversalStorageProvider("accounts/${account.id}/pref");
|
|
await provider.init();
|
|
return AccountPref.scoped(provider);
|
|
}
|