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