copyWith method
ProKitThemeModel
copyWith({
- Color? primary,
- Color? primaryLight,
- Color? primaryDark,
- Color? secondary,
- Color? secondaryLight,
- Color? secondaryDark,
- Color? accent,
- Color? accentLight,
- Color? accentDark,
- Color? background,
- Color? backgroundSub,
- Color? scaffold,
- Color? scaffoldDark,
- Color? text,
- Color? textSub,
- Color? textSub2,
- Color? textInverse,
- Color? textInverseSub,
- Color? textDisabled,
- Color? error,
- Color? warning,
- Color? success,
- Color? info,
- Color? shadow,
- Color? shadowSub,
- Color? divider,
- Color? border,
- Color? card,
- Color? cardSub,
- Color? button,
- Color? buttonText,
- Color? buttonDisabled,
- Color? buttonTextDisabled,
- Color? icon,
- Color? iconSub,
- Color? iconDisabled,
- Color? appBarBackground,
- Color? appBarText,
- Color? appBarIcon,
- Color? tabBarBackground,
- Color? tabBarText,
- Color? tabBarIcon,
Implementation
ProKitThemeModel copyWith({
Color? primary,
Color? primaryLight,
Color? primaryDark,
Color? secondary,
Color? secondaryLight,
Color? secondaryDark,
Color? accent,
Color? accentLight,
Color? accentDark,
Color? background,
Color? backgroundSub,
Color? scaffold,
Color? scaffoldDark,
Color? text,
Color? textSub,
Color? textSub2,
Color? textInverse,
Color? textInverseSub,
Color? textDisabled,
Color? error,
Color? warning,
Color? success,
Color? info,
Color? shadow,
Color? shadowSub,
Color? divider,
Color? border,
Color? card,
Color? cardSub,
Color? button,
Color? buttonText,
Color? buttonDisabled,
Color? buttonTextDisabled,
Color? icon,
Color? iconSub,
Color? iconDisabled,
Color? appBarBackground,
Color? appBarText,
Color? appBarIcon,
Color? tabBarBackground,
Color? tabBarText,
Color? tabBarIcon,
}) {
return ProKitThemeModel(
primary: primary ?? this.primary,
primaryLight: primaryLight ?? this.primaryLight,
primaryDark: primaryDark ?? this.primaryDark,
secondary: secondary ?? this.secondary,
secondaryLight: secondaryLight ?? this.secondaryLight,
secondaryDark: secondaryDark ?? this.secondaryDark,
accent: accent ?? this.accent,
accentLight: accentLight ?? this.accentLight,
accentDark: accentDark ?? this.accentDark,
background: background ?? this.background,
backgroundSub: backgroundSub ?? this.backgroundSub,
scaffold: scaffold ?? this.scaffold,
scaffoldDark: scaffoldDark ?? this.scaffoldDark,
text: text ?? this.text,
textSub: textSub ?? this.textSub,
textSub2: textSub2 ?? this.textSub2,
textInverse: textInverse ?? this.textInverse,
textInverseSub: textInverseSub ?? this.textInverseSub,
textDisabled: textDisabled ?? this.textDisabled,
error: error ?? this.error,
warning: warning ?? this.warning,
success: success ?? this.success,
info: info ?? this.info,
shadow: shadow ?? this.shadow,
shadowSub: shadowSub ?? this.shadowSub,
divider: divider ?? this.divider,
border: border ?? this.border,
card: card ?? this.card,
cardSub: cardSub ?? this.cardSub,
button: button ?? this.button,
buttonText: buttonText ?? this.buttonText,
buttonDisabled: buttonDisabled ?? this.buttonDisabled,
buttonTextDisabled: buttonTextDisabled ?? this.buttonTextDisabled,
icon: icon ?? this.icon,
iconSub: iconSub ?? this.iconSub,
iconDisabled: iconDisabled ?? this.iconDisabled,
appBarBackground: appBarBackground ?? this.appBarBackground,
appBarText: appBarText ?? this.appBarText,
appBarIcon: appBarIcon ?? this.appBarIcon,
tabBarBackground: tabBarBackground ?? this.tabBarBackground,
tabBarText: tabBarText ?? this.tabBarText,
tabBarIcon: tabBarIcon ?? this.tabBarIcon,
);
}