selfprivacy.org.app/lib/logic/cubit/app_settings/app_settings_state.dart

21 lines
557 B
Dart
Raw Normal View History

2020-12-08 19:26:51 +00:00
part of 'app_settings_cubit.dart';
class AppSettingsState extends Equatable {
const AppSettingsState({
@required this.isDarkModeOn,
2021-01-06 17:35:57 +00:00
@required this.isOnbordingShowing,
2020-12-08 19:26:51 +00:00
});
final bool isDarkModeOn;
2021-01-06 17:35:57 +00:00
final bool isOnbordingShowing;
AppSettingsState copyWith({isDarkModeOn, isOnbordingShowing}) =>
AppSettingsState(
isDarkModeOn: isDarkModeOn ?? this.isDarkModeOn,
isOnbordingShowing: isOnbordingShowing ?? this.isOnbordingShowing,
);
2020-12-08 19:26:51 +00:00
@override
2021-01-06 17:35:57 +00:00
List<Object> get props => [isDarkModeOn, isOnbordingShowing];
2020-12-08 19:26:51 +00:00
}