19 lines
496 B
Dart
19 lines
496 B
Dart
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'settings.freezed.dart';
|
|
// part 'settings.g.dart';
|
|
|
|
@freezed
|
|
class AppSettings with _$AppSettings {
|
|
const factory AppSettings({
|
|
required bool notificationsEnabled,
|
|
required bool darkModeEnabled,
|
|
required String language,
|
|
bool? soundEnabled,
|
|
bool? vibrationEnabled,
|
|
String? themeColor,
|
|
}) = _AppSettings;
|
|
|
|
// factory AppSettings.fromJson(Map<String, dynamic> json) => _$AppSettingsFromJson(json);
|
|
}
|