selfprivacy.org.app/lib/logic/cubit/app_settings/app_settings_state.dart
Inex Code bf79fb1adf - Refactor Hive boxes
- Delete SSH generation leftovers
- Migrate users box to an encrypted box
2022-05-17 23:08:28 +03:00

21 lines
562 B
Dart

part of 'app_settings_cubit.dart';
class AppSettingsState extends Equatable {
const AppSettingsState({
required this.isDarkModeOn,
required this.isOnboardingShowing,
});
final bool isDarkModeOn;
final bool isOnboardingShowing;
AppSettingsState copyWith({isDarkModeOn, isOnboardingShowing}) =>
AppSettingsState(
isDarkModeOn: isDarkModeOn ?? this.isDarkModeOn,
isOnboardingShowing: isOnboardingShowing ?? this.isOnboardingShowing,
);
@override
List<Object> get props => [isDarkModeOn, isOnboardingShowing];
}