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