copyWith method

ProKitThemeModel copyWith({
  1. Color? primary,
  2. Color? primaryLight,
  3. Color? primaryDark,
  4. Color? secondary,
  5. Color? secondaryLight,
  6. Color? secondaryDark,
  7. Color? accent,
  8. Color? accentLight,
  9. Color? accentDark,
  10. Color? background,
  11. Color? backgroundSub,
  12. Color? scaffold,
  13. Color? scaffoldDark,
  14. Color? text,
  15. Color? textSub,
  16. Color? textSub2,
  17. Color? textInverse,
  18. Color? textInverseSub,
  19. Color? textDisabled,
  20. Color? error,
  21. Color? warning,
  22. Color? success,
  23. Color? info,
  24. Color? shadow,
  25. Color? shadowSub,
  26. Color? divider,
  27. Color? border,
  28. Color? card,
  29. Color? cardSub,
  30. Color? button,
  31. Color? buttonText,
  32. Color? buttonDisabled,
  33. Color? buttonTextDisabled,
  34. Color? icon,
  35. Color? iconSub,
  36. Color? iconDisabled,
  37. Color? appBarBackground,
  38. Color? appBarText,
  39. Color? appBarIcon,
  40. Color? tabBarBackground,
  41. Color? tabBarText,
  42. 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,
  );
}