copyWith method
AlertTheme
copyWith({
- Color? backgroundColor,
- TextStyle? titleStyle,
- TextStyle? descriptionStyle,
- ButtonStyle? buttonStyle,
- BorderRadius? borderRadius,
- List<
BoxShadow> ? shadow, - Duration? animationDuration,
Implementation
AlertTheme copyWith({
Color? backgroundColor,
TextStyle? titleStyle,
TextStyle? descriptionStyle,
ButtonStyle? buttonStyle,
BorderRadius? borderRadius,
List<BoxShadow>? shadow,
Duration? animationDuration,
}) {
return AlertTheme(
backgroundColor: backgroundColor ?? this.backgroundColor,
titleStyle: titleStyle ?? this.titleStyle,
descriptionStyle: descriptionStyle ?? this.descriptionStyle,
buttonStyle: buttonStyle ?? this.buttonStyle,
borderRadius: borderRadius ?? this.borderRadius,
shadow: shadow ?? this.shadow,
animationDuration: animationDuration ?? this.animationDuration,
);
}