copyWith method

ThemeState copyWith({
  1. ThemeMode? themeMode,
  2. ColorMode? colorMode,
  3. Color? seed,
})

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,
  );
}