copyWith method

ThemeWrapper copyWith({
  1. EmergentThemeData? theme,
  2. EmergentThemeData? darkTheme,
  3. ThemeMode? currentTheme,
})

Implementation

ThemeWrapper copyWith({
  EmergentThemeData? theme,
  EmergentThemeData? darkTheme,
  ThemeMode? currentTheme,
}) {
  return ThemeWrapper(
    theme: theme ?? this.theme,
    darkTheme: darkTheme ?? this.darkTheme,
    themeMode: currentTheme ?? themeMode,
  );
}