Add config option reset

This commit is contained in:
problematicconsumer
2023-12-12 18:07:02 +03:30
parent 4c2a412820
commit 5e436e3f13
8 changed files with 84 additions and 24 deletions

View File

@@ -28,4 +28,9 @@ class ConfigOptionNotifier extends _$ConfigOptionNotifier with AppLogger {
.run();
}
}
Future<void> resetOption() async {
await ref.read(configOptionRepositoryProvider).resetConfigOption().run();
ref.invalidateSelf();
}
}