copyWith method

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

Implementation

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