copyWith method
TsdtechThemeData
copyWith({
- Color? primaryColor,
- Color? primaryLightColor,
- Color? primaryDarkColor,
- Color? accentColor,
- Color? backgroundColor,
- Color? surfaceColor,
- Color? surfaceVariantColor,
- Color? outlineColor,
- Color? textPrimaryColor,
- Color? textSecondaryColor,
- Color? textDisabledColor,
- Color? textOnPrimaryColor,
- Color? successColor,
- Color? warningColor,
- Color? errorColor,
- double? borderRadius,
- String? fontFamily,
- Brightness? brightness,
Implementation
TsdtechThemeData copyWith({
Color? primaryColor,
Color? primaryLightColor,
Color? primaryDarkColor,
Color? accentColor,
Color? backgroundColor,
Color? surfaceColor,
Color? surfaceVariantColor,
Color? outlineColor,
Color? textPrimaryColor,
Color? textSecondaryColor,
Color? textDisabledColor,
Color? textOnPrimaryColor,
Color? successColor,
Color? warningColor,
Color? errorColor,
double? borderRadius,
String? fontFamily,
Brightness? brightness,
}) {
return TsdtechThemeData(
primaryColor: primaryColor ?? this.primaryColor,
primaryLightColor: primaryLightColor ?? this.primaryLightColor,
primaryDarkColor: primaryDarkColor ?? this.primaryDarkColor,
accentColor: accentColor ?? this.accentColor,
backgroundColor: backgroundColor ?? this.backgroundColor,
surfaceColor: surfaceColor ?? this.surfaceColor,
surfaceVariantColor: surfaceVariantColor ?? this.surfaceVariantColor,
outlineColor: outlineColor ?? this.outlineColor,
textPrimaryColor: textPrimaryColor ?? this.textPrimaryColor,
textSecondaryColor: textSecondaryColor ?? this.textSecondaryColor,
textDisabledColor: textDisabledColor ?? this.textDisabledColor,
textOnPrimaryColor: textOnPrimaryColor ?? this.textOnPrimaryColor,
successColor: successColor ?? this.successColor,
warningColor: warningColor ?? this.warningColor,
errorColor: errorColor ?? this.errorColor,
borderRadius: borderRadius ?? this.borderRadius,
fontFamily: fontFamily ?? this.fontFamily,
brightness: brightness ?? this.brightness,
);
}