copyWith method

SettingsState copyWith({
  1. String? defaultStandardId,
  2. String? locale,
  3. TextSizePreference? textSize,
  4. AppThemeMode? themeMode,
  5. bool? notificationsEnabled,
  6. bool? highContrastEnabled,
  7. String? version,
  8. bool? isLoading,
})

Implementation

SettingsState copyWith({
  String? defaultStandardId,
  String? locale,
  TextSizePreference? textSize,
  AppThemeMode? themeMode,
  bool? notificationsEnabled,
  bool? highContrastEnabled,
  String? version,
  bool? isLoading,
}) {
  return SettingsState(
    defaultStandardId: defaultStandardId ?? this.defaultStandardId,
    locale: locale ?? this.locale,
    textSize: textSize ?? this.textSize,
    themeMode: themeMode ?? this.themeMode,
    notificationsEnabled: notificationsEnabled ?? this.notificationsEnabled,
    highContrastEnabled: highContrastEnabled ?? this.highContrastEnabled,
    version: version ?? this.version,
    isLoading: isLoading ?? this.isLoading,
  );
}