copyWith method

  1. @override
BsThemeData copyWith({
  1. Color? primary,
  2. Color? secondary,
  3. Color? success,
  4. Color? danger,
  5. Color? warning,
  6. Color? info,
  7. Color? light,
  8. Color? dark,
  9. Color? onDark,
  10. Color? onLight,
  11. Color? bodyText,
  12. Color? bodyTextSecondary,
  13. Color? bodyTextTertiary,
  14. Color? emphasisColor,
  15. Color? bodyBg,
  16. Color? bodyBgSecondary,
  17. Color? bodyBgTertiary,
  18. Color? border,
  19. Color? borderTranslucent,
  20. Color? linkColor,
  21. Color? linkHoverColor,
  22. Color? primaryTextEmphasis,
  23. Color? secondaryTextEmphasis,
  24. Color? successTextEmphasis,
  25. Color? dangerTextEmphasis,
  26. Color? warningTextEmphasis,
  27. Color? infoTextEmphasis,
  28. Color? lightTextEmphasis,
  29. Color? darkTextEmphasis,
  30. Color? primaryBgSubtle,
  31. Color? secondaryBgSubtle,
  32. Color? successBgSubtle,
  33. Color? dangerBgSubtle,
  34. Color? warningBgSubtle,
  35. Color? infoBgSubtle,
  36. Color? lightBgSubtle,
  37. Color? darkBgSubtle,
  38. Color? primaryBorderSubtle,
  39. Color? secondaryBorderSubtle,
  40. Color? successBorderSubtle,
  41. Color? dangerBorderSubtle,
  42. Color? warningBorderSubtle,
  43. Color? infoBorderSubtle,
  44. Color? lightBorderSubtle,
  45. Color? darkBorderSubtle,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
BsThemeData copyWith({
  Color? primary,
  Color? secondary,
  Color? success,
  Color? danger,
  Color? warning,
  Color? info,
  Color? light,
  Color? dark,
  Color? onDark,
  Color? onLight,
  Color? bodyText,
  Color? bodyTextSecondary,
  Color? bodyTextTertiary,
  Color? emphasisColor,
  Color? bodyBg,
  Color? bodyBgSecondary,
  Color? bodyBgTertiary,
  Color? border,
  Color? borderTranslucent,
  Color? linkColor,
  Color? linkHoverColor,
  Color? primaryTextEmphasis,
  Color? secondaryTextEmphasis,
  Color? successTextEmphasis,
  Color? dangerTextEmphasis,
  Color? warningTextEmphasis,
  Color? infoTextEmphasis,
  Color? lightTextEmphasis,
  Color? darkTextEmphasis,
  Color? primaryBgSubtle,
  Color? secondaryBgSubtle,
  Color? successBgSubtle,
  Color? dangerBgSubtle,
  Color? warningBgSubtle,
  Color? infoBgSubtle,
  Color? lightBgSubtle,
  Color? darkBgSubtle,
  Color? primaryBorderSubtle,
  Color? secondaryBorderSubtle,
  Color? successBorderSubtle,
  Color? dangerBorderSubtle,
  Color? warningBorderSubtle,
  Color? infoBorderSubtle,
  Color? lightBorderSubtle,
  Color? darkBorderSubtle,
}) {
  return BsThemeData(
    primary: primary ?? this.primary,
    secondary: secondary ?? this.secondary,
    success: success ?? this.success,
    danger: danger ?? this.danger,
    warning: warning ?? this.warning,
    info: info ?? this.info,
    light: light ?? this.light,
    dark: dark ?? this.dark,
    onDark: onDark ?? this.onDark,
    onLight: onLight ?? this.onLight,
    bodyText: bodyText ?? this.bodyText,
    bodyTextSecondary: bodyTextSecondary ?? this.bodyTextSecondary,
    bodyTextTertiary: bodyTextTertiary ?? this.bodyTextTertiary,
    emphasisColor: emphasisColor ?? this.emphasisColor,
    bodyBg: bodyBg ?? this.bodyBg,
    bodyBgSecondary: bodyBgSecondary ?? this.bodyBgSecondary,
    bodyBgTertiary: bodyBgTertiary ?? this.bodyBgTertiary,
    border: border ?? this.border,
    borderTranslucent: borderTranslucent ?? this.borderTranslucent,
    linkColor: linkColor ?? this.linkColor,
    linkHoverColor: linkHoverColor ?? this.linkHoverColor,
    primaryTextEmphasis: primaryTextEmphasis ?? this.primaryTextEmphasis,
    secondaryTextEmphasis:
        secondaryTextEmphasis ?? this.secondaryTextEmphasis,
    successTextEmphasis: successTextEmphasis ?? this.successTextEmphasis,
    dangerTextEmphasis: dangerTextEmphasis ?? this.dangerTextEmphasis,
    warningTextEmphasis: warningTextEmphasis ?? this.warningTextEmphasis,
    infoTextEmphasis: infoTextEmphasis ?? this.infoTextEmphasis,
    lightTextEmphasis: lightTextEmphasis ?? this.lightTextEmphasis,
    darkTextEmphasis: darkTextEmphasis ?? this.darkTextEmphasis,
    primaryBgSubtle: primaryBgSubtle ?? this.primaryBgSubtle,
    secondaryBgSubtle: secondaryBgSubtle ?? this.secondaryBgSubtle,
    successBgSubtle: successBgSubtle ?? this.successBgSubtle,
    dangerBgSubtle: dangerBgSubtle ?? this.dangerBgSubtle,
    warningBgSubtle: warningBgSubtle ?? this.warningBgSubtle,
    infoBgSubtle: infoBgSubtle ?? this.infoBgSubtle,
    lightBgSubtle: lightBgSubtle ?? this.lightBgSubtle,
    darkBgSubtle: darkBgSubtle ?? this.darkBgSubtle,
    primaryBorderSubtle: primaryBorderSubtle ?? this.primaryBorderSubtle,
    secondaryBorderSubtle:
        secondaryBorderSubtle ?? this.secondaryBorderSubtle,
    successBorderSubtle: successBorderSubtle ?? this.successBorderSubtle,
    dangerBorderSubtle: dangerBorderSubtle ?? this.dangerBorderSubtle,
    warningBorderSubtle: warningBorderSubtle ?? this.warningBorderSubtle,
    infoBorderSubtle: infoBorderSubtle ?? this.infoBorderSubtle,
    lightBorderSubtle: lightBorderSubtle ?? this.lightBorderSubtle,
    darkBorderSubtle: darkBorderSubtle ?? this.darkBorderSubtle,
  );
}