copyWith method
PulseTheme
copyWith({
- double? dialogBorderRadius,
- Color? dialogBackgroundColor,
- Color? primaryColor,
- Color? titleTextColor,
- Color? contentTextColor,
- EdgeInsets? dialogContentPadding,
- double? dialogBlurSigmaX,
- double? dialogBlurSigmaY,
- Color? dialogBarrierColor,
- TextStyle? titleTextStyle,
- TextStyle? contentTextStyle,
- TextStyle? buttonTextStyle,
- double? iconSize,
- Color? errorIconColor,
- Color? defectIconColor,
- Color? suggestionIconColor,
- Color? categoryIconColor,
Creates a copy of this theme with the given fields replaced with new values.
Implementation
PulseTheme copyWith({
double? dialogBorderRadius,
Color? dialogBackgroundColor,
Color? primaryColor,
Color? titleTextColor,
Color? contentTextColor,
EdgeInsets? dialogContentPadding,
double? dialogBlurSigmaX,
double? dialogBlurSigmaY,
Color? dialogBarrierColor,
TextStyle? titleTextStyle,
TextStyle? contentTextStyle,
TextStyle? buttonTextStyle,
double? iconSize,
Color? errorIconColor,
Color? defectIconColor,
Color? suggestionIconColor,
Color? categoryIconColor,
}) {
return PulseTheme(
dialogBorderRadius: dialogBorderRadius ?? this.dialogBorderRadius,
dialogBackgroundColor: dialogBackgroundColor ?? this.dialogBackgroundColor,
primaryColor: primaryColor ?? this.primaryColor,
titleTextColor: titleTextColor ?? this.titleTextColor,
contentTextColor: contentTextColor ?? this.contentTextColor,
dialogContentPadding: dialogContentPadding ?? this.dialogContentPadding,
dialogBlurSigmaX: dialogBlurSigmaX ?? this.dialogBlurSigmaX,
dialogBlurSigmaY: dialogBlurSigmaY ?? this.dialogBlurSigmaY,
dialogBarrierColor: dialogBarrierColor ?? this.dialogBarrierColor,
titleTextStyle: titleTextStyle ?? this.titleTextStyle,
contentTextStyle: contentTextStyle ?? this.contentTextStyle,
buttonTextStyle: buttonTextStyle ?? this.buttonTextStyle,
iconSize: iconSize ?? this.iconSize,
errorIconColor: errorIconColor ?? this.errorIconColor,
defectIconColor: defectIconColor ?? this.defectIconColor,
suggestionIconColor: suggestionIconColor ?? this.suggestionIconColor,
categoryIconColor: categoryIconColor ?? this.categoryIconColor,
);
}