copyWith method
Implementation
MediaOverrideState copyWith({
ThemeMode? themeMode,
bool clearThemeMode = false,
Locale? locale,
bool clearLocale = false,
}) {
assert(!(clearThemeMode && themeMode != null));
assert(!(clearLocale && locale != null));
return MediaOverrideState(
themeMode: clearThemeMode ? null : themeMode ?? this.themeMode,
locale: clearLocale ? null : locale ?? this.locale,
);
}