copyWith method

TsdtechThemeData copyWith({
  1. Color? primaryColor,
  2. Color? primaryLightColor,
  3. Color? primaryDarkColor,
  4. Color? accentColor,
  5. Color? backgroundColor,
  6. Color? surfaceColor,
  7. Color? surfaceVariantColor,
  8. Color? outlineColor,
  9. Color? textPrimaryColor,
  10. Color? textSecondaryColor,
  11. Color? textDisabledColor,
  12. Color? textOnPrimaryColor,
  13. Color? successColor,
  14. Color? warningColor,
  15. Color? errorColor,
  16. double? borderRadius,
  17. String? fontFamily,
  18. 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,
  );
}