copyWith method
AppTheme
copyWith({
- Color? primaryColor,
- Color? secondaryColor,
- Color? backgroundColor,
- Brightness? brightness,
Implementation
AppTheme copyWith({
Color? primaryColor,
Color? secondaryColor,
Color? backgroundColor,
Brightness? brightness,
}) {
return AppTheme(
primaryColor: primaryColor ?? this.primaryColor,
secondaryColor: secondaryColor ?? this.secondaryColor,
backgroundColor: backgroundColor ?? this.backgroundColor,
brightness: brightness ?? this.brightness,
);
}