copyWith method

PulseTheme copyWith({
  1. double? dialogBorderRadius,
  2. Color? dialogBackgroundColor,
  3. Color? primaryColor,
  4. Color? titleTextColor,
  5. Color? contentTextColor,
  6. EdgeInsets? dialogContentPadding,
  7. double? dialogBlurSigmaX,
  8. double? dialogBlurSigmaY,
  9. Color? dialogBarrierColor,
  10. TextStyle? titleTextStyle,
  11. TextStyle? contentTextStyle,
  12. TextStyle? buttonTextStyle,
  13. double? iconSize,
  14. Color? errorIconColor,
  15. Color? defectIconColor,
  16. Color? suggestionIconColor,
  17. 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,
  );
}