settingsProvider top-level property

Provider<SettingsProviderState> settingsProvider
final

Provides methods to change the User's settings.

NOTE: This provider only provides methods to change the settings, as the current settings can be inferred from the User object.

If you want to get the current settings, see userProvider.

Implementation

final settingsProvider = Provider<SettingsProviderState>((ref) {
  final user = ref.watch(userProvider);
  final controller = ref.watch(userController);
  final appDirService = ref.watch(appDirServiceProvider);

  return SettingsProviderState(user, controller, appDirService);
});