copyWith method
- Color? primaryUltraBlack,
- Color? primaryBlack,
- Color? primaryDark,
- Color? primarySemiDark,
- Color? primaryTone,
- Color? primaryNormal,
- Color? primaryAccent,
- Color? primaryMedium,
- Color? primaryLight,
- Color? secondaryNormal,
- Color? secondaryLight,
- Color? secondaryVibrant,
- Color? error,
- Color? errorGradient,
- Color? errorBackground,
- Color? warning,
- Color? warningGradient,
- Color? warningBackground,
- Color? success,
- Color? successGradient,
- Color? successBackground,
- Color? greyDark,
- Color? greyNormal,
- Color? greyMedium,
- Color? greyLight,
- Color? cellOdd,
- Color? cellEven,
- Color? greyUltraLight,
- Color? greySemiLight,
- Color? greyFair,
- Color? greyUltraDark,
- Color? scoreLightGreen,
- Color? scoreDarkYellow,
- Color? scoreDarkOrange,
- Color? scoreRedBackground,
- Color? scoreOrangeBackground,
- Color? scoreYellowBackground,
- Color? scoreLightGreenBackground,
- Color? scoreDarkGreenBackground,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
ThemeExtension<SmoothColorsThemeExtension> copyWith({
Color? primaryUltraBlack,
Color? primaryBlack,
Color? primaryDark,
Color? primarySemiDark,
Color? primaryTone,
Color? primaryNormal,
Color? primaryAccent,
Color? primaryMedium,
Color? primaryLight,
Color? secondaryNormal,
Color? secondaryLight,
Color? secondaryVibrant,
Color? error,
Color? errorGradient,
Color? errorBackground,
Color? warning,
Color? warningGradient,
Color? warningBackground,
Color? success,
Color? successGradient,
Color? successBackground,
Color? greyDark,
Color? greyNormal,
Color? greyMedium,
Color? greyLight,
Color? cellOdd,
Color? cellEven,
Color? greyUltraLight,
Color? greySemiLight,
Color? greyFair,
Color? greyUltraDark,
Color? scoreLightGreen,
Color? scoreDarkYellow,
Color? scoreDarkOrange,
Color? scoreRedBackground,
Color? scoreOrangeBackground,
Color? scoreYellowBackground,
Color? scoreLightGreenBackground,
Color? scoreDarkGreenBackground,
}) {
return SmoothColorsThemeExtension(
primaryUltraBlack: primaryUltraBlack ?? this.primaryUltraBlack,
primaryBlack: primaryBlack ?? this.primaryBlack,
primaryDark: primaryDark ?? this.primaryDark,
primarySemiDark: primarySemiDark ?? this.primarySemiDark,
primaryTone: primaryTone ?? this.primaryTone,
primaryNormal: primaryNormal ?? this.primaryNormal,
primaryAccent: primaryAccent ?? this.primaryAccent,
primaryMedium: primaryMedium ?? this.primaryMedium,
primaryLight: primaryLight ?? this.primaryLight,
secondaryNormal: secondaryNormal ?? this.secondaryNormal,
secondaryLight: secondaryLight ?? this.secondaryLight,
secondaryVibrant: secondaryVibrant ?? this.secondaryVibrant,
error: error ?? this.error,
errorGradient: errorGradient ?? this.errorGradient,
errorBackground: errorBackground ?? this.errorBackground,
warning: warning ?? this.warning,
warningGradient: warningGradient ?? this.warningGradient,
warningBackground: warningBackground ?? this.warningBackground,
success: success ?? this.success,
successGradient: successGradient ?? this.successGradient,
successBackground: successBackground ?? this.successBackground,
greyDark: greyDark ?? this.greyDark,
greyNormal: greyDark ?? this.greyDark,
greyMedium: greyMedium ?? this.greyMedium,
greyLight: greyLight ?? this.greyLight,
cellOdd: cellOdd ?? this.cellOdd,
cellEven: cellEven ?? this.cellEven,
greyUltraLight: greyUltraLight ?? this.greyUltraLight,
greySemiLight: greySemiLight ?? this.greySemiLight,
greyFair: greyFair ?? this.greyFair,
greyUltraDark: greyUltraDark ?? this.greyUltraDark,
scoreLightGreen: scoreLightGreen ?? this.scoreLightGreen,
scoreDarkYellow: scoreDarkYellow ?? this.scoreDarkYellow,
scoreDarkOrange: scoreDarkOrange ?? this.scoreDarkOrange,
scoreRedBackground: scoreRedBackground ?? this.scoreRedBackground,
scoreOrangeBackground:
scoreOrangeBackground ?? this.scoreOrangeBackground,
scoreYellowBackground:
scoreYellowBackground ?? this.scoreYellowBackground,
scoreLightGreenBackground:
scoreLightGreenBackground ?? this.scoreLightGreenBackground,
scoreDarkGreenBackground:
scoreDarkGreenBackground ?? this.scoreDarkGreenBackground,
);
}