copyWith method

ThemeState copyWith({
  1. ThemeMode? themeMode,
  2. CustomThemeData? customTheme,
  3. bool? isDarkMode,
})

Implementation

ThemeState copyWith({
  ThemeMode? themeMode,
  CustomThemeData? customTheme,
  bool? isDarkMode,
}) {
  return ThemeState(
    themeMode: themeMode ?? this.themeMode,
    customTheme: customTheme ?? this.customTheme,
    isDarkMode: isDarkMode ?? this.isDarkMode,
  );
}