refactor
This commit is contained in:
14
lib/core/theme/bloc/theme_state.dart
Normal file
14
lib/core/theme/bloc/theme_state.dart
Normal file
@@ -0,0 +1,14 @@
|
||||
part of 'theme_bloc.dart';
|
||||
|
||||
class ThemeState extends Equatable {
|
||||
const ThemeState({required this.currentTheme});
|
||||
|
||||
final AppThemeMode currentTheme;
|
||||
|
||||
@override
|
||||
List<Object?> get props => [currentTheme];
|
||||
|
||||
ThemeState copyWith({AppThemeMode? currentTheme}) {
|
||||
return ThemeState(currentTheme: currentTheme ?? this.currentTheme);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user