updatePreferences method

void updatePreferences({
  1. String? locale,
  2. AppThemeMode? themeMode,
  3. TextSizePreference? textSize,
  4. bool? notificationsEnabled,
})

Implementation

void updatePreferences({
  String? locale,
  AppThemeMode? themeMode,
  TextSizePreference? textSize,
  bool? notificationsEnabled,
}) {
  emit(state.copyWith(
    locale: locale,
    themePreference: themeMode,
    textSizePreference: textSize,
    notificationsEnabled: notificationsEnabled,
  ));
}