MoodCanvas/lib/models/app_settings.dart
fengshengxiong 91b7eebbf2 接入TopON
2026-01-22 16:34:55 +08:00

32 lines
734 B
Dart

class AppSettings {
final bool darkMode;
final String language;
final bool notifications;
final double imageQuality;
final bool autoSave;
AppSettings({
this.darkMode = true,
this.language = 'en',
this.notifications = true,
this.imageQuality = 1.0,
this.autoSave = true,
});
AppSettings copyWith({
bool? darkMode,
String? language,
bool? notifications,
double? imageQuality,
bool? autoSave,
}) {
return AppSettings(
darkMode: darkMode ?? this.darkMode,
language: language ?? this.language,
notifications: notifications ?? this.notifications,
imageQuality: imageQuality ?? this.imageQuality,
autoSave: autoSave ?? this.autoSave,
);
}
}