copyWith method

AlertTheme copyWith({
  1. Color? backgroundColor,
  2. TextStyle? titleStyle,
  3. TextStyle? descriptionStyle,
  4. ButtonStyle? buttonStyle,
  5. BorderRadius? borderRadius,
  6. List<BoxShadow>? shadow,
  7. 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,
  );
}