2020-12-08 19:26:51 +00:00
|
|
|
part of 'app_settings_cubit.dart';
|
|
|
|
|
|
|
|
class AppSettingsState extends Equatable {
|
|
|
|
const AppSettingsState({
|
2021-03-15 15:39:44 +00:00
|
|
|
required this.isDarkModeOn,
|
2022-05-17 20:08:28 +00:00
|
|
|
required this.isOnboardingShowing,
|
2020-12-08 19:26:51 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
final bool isDarkModeOn;
|
2022-05-17 20:08:28 +00:00
|
|
|
final bool isOnboardingShowing;
|
2021-01-06 17:35:57 +00:00
|
|
|
|
2022-06-05 22:40:34 +00:00
|
|
|
AppSettingsState copyWith({
|
|
|
|
final bool? isDarkModeOn,
|
|
|
|
final bool? isOnboardingShowing,
|
|
|
|
}) =>
|
2021-01-06 17:35:57 +00:00
|
|
|
AppSettingsState(
|
|
|
|
isDarkModeOn: isDarkModeOn ?? this.isDarkModeOn,
|
2022-05-17 20:08:28 +00:00
|
|
|
isOnboardingShowing: isOnboardingShowing ?? this.isOnboardingShowing,
|
2021-01-06 17:35:57 +00:00
|
|
|
);
|
2020-12-08 19:26:51 +00:00
|
|
|
|
|
|
|
@override
|
2022-05-17 20:08:28 +00:00
|
|
|
List<Object> get props => [isDarkModeOn, isOnboardingShowing];
|
2020-12-08 19:26:51 +00:00
|
|
|
}
|