some async refactorings
This commit is contained in:
1 parent
dbf953f879
commit
2c71909283
8 files changed
+11
-13
No files matched your search
@@ -11,7 +11,7 @@ class SaveSettingsController extends _$SaveSettingsController {
|
||||
Future<void> save(UpdateSettingsFunc updateSettings) async {
|
||||
state = const AsyncLoading();
|
||||
state = await AsyncValue.guard(
|
||||
() async => ref
|
||||
() => ref
|
||||
.read(settingsRepositoryProvider.notifier)
|
||||
.updateSettings(updateSettings),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user