import 'package:equatable/equatable.dart';

class SettingsIndexState extends Equatable {
  const SettingsIndexState({
    this.selectedMenu = '关于本机',
    this.language = '简体中文',
    this.useCelsius = true,
    this.lockScreen = true,
  });

  final String selectedMenu;
  final String language;
  final bool useCelsius;
  final bool lockScreen;

  SettingsIndexState copyWith({
    String? selectedMenu,
    String? language,
    bool? useCelsius,
    bool? lockScreen,
  }) {
    return SettingsIndexState(
      selectedMenu: selectedMenu ?? this.selectedMenu,
      language: language ?? this.language,
      useCelsius: useCelsius ?? this.useCelsius,
      lockScreen: lockScreen ?? this.lockScreen,
    );
  }

  @override
  List<Object?> get props => [
        selectedMenu,
        language,
        useCelsius,
        lockScreen,
      ];
}
