copyWith method
- String? locale,
- TextSizePreference? textSize,
- AppThemeMode? themeMode,
- bool? notificationsEnabled,
- bool? highContrastEnabled,
Implementation
AppPreferences copyWith({
String? locale,
TextSizePreference? textSize,
AppThemeMode? themeMode,
bool? notificationsEnabled,
bool? highContrastEnabled,
}) {
return AppPreferences(
locale: locale ?? this.locale,
textSize: textSize ?? this.textSize,
themeMode: themeMode ?? this.themeMode,
notificationsEnabled: notificationsEnabled ?? this.notificationsEnabled,
highContrastEnabled: highContrastEnabled ?? this.highContrastEnabled,
);
}