copyWith method
Creates a copy of this theme state but with the given fields replaced with the new values.
Implementation
ThemeState copyWith({
ThemeMode? themeMode,
ColorMode? colorMode,
Color? seed,
}) {
return ThemeState(
themeMode: themeMode ?? this.themeMode,
colorMode: colorMode ?? this.colorMode,
seed: seed ?? this.seed,
);
}