mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-18 06:39:14 +00:00
31 lines
914 B
Dart
31 lines
914 B
Dart
part of 'app_settings_cubit.dart';
|
|
|
|
class AppSettingsState extends Equatable {
|
|
const AppSettingsState({
|
|
required this.isDarkModeOn,
|
|
required this.isOnboardingShowing,
|
|
this.corePalette,
|
|
});
|
|
|
|
final bool isDarkModeOn;
|
|
final bool isOnboardingShowing;
|
|
final color_utils.CorePalette? corePalette;
|
|
|
|
AppSettingsState copyWith({
|
|
final bool? isDarkModeOn,
|
|
final bool? isOnboardingShowing,
|
|
final color_utils.CorePalette? corePalette,
|
|
}) =>
|
|
AppSettingsState(
|
|
isDarkModeOn: isDarkModeOn ?? this.isDarkModeOn,
|
|
isOnboardingShowing: isOnboardingShowing ?? this.isOnboardingShowing,
|
|
corePalette: corePalette ?? this.corePalette,
|
|
);
|
|
|
|
color_utils.CorePalette get corePaletteOrDefault =>
|
|
corePalette ?? color_utils.CorePalette.of(BrandColors.primary.value);
|
|
|
|
@override
|
|
List<dynamic> get props => [isDarkModeOn, isOnboardingShowing, corePalette];
|
|
}
|