import 'package:bloc/bloc.dart'; import 'package:equatable/equatable.dart'; import 'package:pinball_theme/pinball_theme.dart'; part 'theme_state.dart'; class ThemeCubit extends Cubit { ThemeCubit() : super(const ThemeState(DashTheme())); void themeSelected(PinballTheme theme) { emit(ThemeState(theme)); } }