ThemeBloc constructor

ThemeBloc({
  1. required ThemeRepository themeRepository,
})

Implementation

ThemeBloc({required this.themeRepository}) : super(ThemeInitial()) {
  on<ThemeInitialEvent>(_onThemeInitialEvent);
  on<ThemeChangedEvent>(_onThemeChangedEvent);
  on<CustomThemeEvent>(_onCustomThemeEvent);
  on<ThemeFollowSystemEvent>(_onThemeFollowSystemEvent);
}