CustomThemeCubit constructor

CustomThemeCubit(
  1. SharedPreferences sharedPreferences, {
  2. Map<String, Color>? lightColors,
  3. Map<String, Color>? darkColors,
})

Implementation

CustomThemeCubit(
  this.sharedPreferences, {
  Map<String, Color>? lightColors,
  Map<String, Color>? darkColors,
})  : _lightTheme = _mergeThemes(CustomColors.lightTheme, lightColors),
      _darkTheme = _mergeThemes(CustomColors.darkTheme, darkColors),
      super(CustomColors.lightTheme) {
  _initializeTheme();
}