copyWith method

CountdownTheme copyWith({
  1. Color? primaryColor,
  2. Color? secondaryColor,
  3. Color? backgroundColor,
  4. Color? textColor,
  5. Color? iconColor,
  6. Color? borderColor,
  7. double? borderRadius,
  8. double? borderWidth,
  9. EdgeInsetsGeometry? padding,
  10. EdgeInsetsGeometry? margin,
  11. TextStyle? textStyle,
  12. TextStyle? titleTextStyle,
  13. TextStyle? subtitleTextStyle,
  14. List<BoxShadow>? boxShadow,
  15. Gradient? gradient,
  16. double? progressStrokeWidth,
  17. Color? progressBackgroundColor,
  18. Color? progressValueColor,
  19. bool? useResponsiveSizing,
  20. ResponsiveFontConfig? responsiveFontConfig,
  21. ResponsivePaddingConfig? responsivePaddingConfig,
  22. ResponsiveIconConfig? responsiveIconConfig,
  23. CountdownAnimationConfig? animationConfig,
  24. CountdownCustomBuilderConfig? customBuilderConfig,
  25. CountdownAdvancedStyle? advancedStyle,
  26. Decoration? decoration,
  27. Decoration? foregroundDecoration,
  28. double? width,
  29. double? height,
  30. double? minWidth,
  31. double? minHeight,
  32. double? maxWidth,
  33. double? maxHeight,
})

Creates a copy of this theme with the given fields replaced

Implementation

CountdownTheme copyWith({
  Color? primaryColor,
  Color? secondaryColor,
  Color? backgroundColor,
  Color? textColor,
  Color? iconColor,
  Color? borderColor,
  double? borderRadius,
  double? borderWidth,
  EdgeInsetsGeometry? padding,
  EdgeInsetsGeometry? margin,
  TextStyle? textStyle,
  TextStyle? titleTextStyle,
  TextStyle? subtitleTextStyle,
  List<BoxShadow>? boxShadow,
  Gradient? gradient,
  double? progressStrokeWidth,
  Color? progressBackgroundColor,
  Color? progressValueColor,
  bool? useResponsiveSizing,
  ResponsiveFontConfig? responsiveFontConfig,
  ResponsivePaddingConfig? responsivePaddingConfig,
  ResponsiveIconConfig? responsiveIconConfig,
  CountdownAnimationConfig? animationConfig,
  CountdownCustomBuilderConfig? customBuilderConfig,
  CountdownAdvancedStyle? advancedStyle,
  Decoration? decoration,
  Decoration? foregroundDecoration,
  double? width,
  double? height,
  double? minWidth,
  double? minHeight,
  double? maxWidth,
  double? maxHeight,
}) {
  return CountdownTheme(
    primaryColor: primaryColor ?? this.primaryColor,
    secondaryColor: secondaryColor ?? this.secondaryColor,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    textColor: textColor ?? this.textColor,
    iconColor: iconColor ?? this.iconColor,
    borderColor: borderColor ?? this.borderColor,
    borderRadius: borderRadius ?? this.borderRadius,
    borderWidth: borderWidth ?? this.borderWidth,
    padding: padding ?? this.padding,
    margin: margin ?? this.margin,
    textStyle: textStyle ?? this.textStyle,
    titleTextStyle: titleTextStyle ?? this.titleTextStyle,
    subtitleTextStyle: subtitleTextStyle ?? this.subtitleTextStyle,
    boxShadow: boxShadow ?? this.boxShadow,
    gradient: gradient ?? this.gradient,
    progressStrokeWidth: progressStrokeWidth ?? this.progressStrokeWidth,
    progressBackgroundColor:
        progressBackgroundColor ?? this.progressBackgroundColor,
    progressValueColor: progressValueColor ?? this.progressValueColor,
    useResponsiveSizing: useResponsiveSizing ?? this.useResponsiveSizing,
    responsiveFontConfig: responsiveFontConfig ?? this.responsiveFontConfig,
    responsivePaddingConfig:
        responsivePaddingConfig ?? this.responsivePaddingConfig,
    responsiveIconConfig: responsiveIconConfig ?? this.responsiveIconConfig,
    animationConfig: animationConfig ?? this.animationConfig,
    customBuilderConfig: customBuilderConfig ?? this.customBuilderConfig,
    advancedStyle: advancedStyle ?? this.advancedStyle,
    decoration: decoration ?? this.decoration,
    foregroundDecoration: foregroundDecoration ?? this.foregroundDecoration,
    width: width ?? this.width,
    height: height ?? this.height,
    minWidth: minWidth ?? this.minWidth,
    minHeight: minHeight ?? this.minHeight,
    maxWidth: maxWidth ?? this.maxWidth,
    maxHeight: maxHeight ?? this.maxHeight,
  );
}