copyWith method
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,
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,
);
}