copyWith method

AlertProps copyWith({
  1. ColorVariant? color,
  2. String? title,
  3. String? message,
  4. Widget? child,
  5. AlertStyle? style,
  6. Widget? icon,
  7. bool? showIcon,
  8. bool? dismissible,
  9. void onDismiss()?,
  10. Widget? action,
})

Implementation

AlertProps copyWith({
  ColorVariant? color,
  String? title,
  String? message,
  Widget? child,
  AlertStyle? style,
  Widget? icon,
  bool? showIcon,
  bool? dismissible,
  void Function()? onDismiss,
  Widget? action,
}) {
  return AlertProps(
    color: color ?? this.color,
    title: title ?? this.title,
    message: message ?? this.message,
    child: child ?? this.child,
    style: style ?? this.style,
    icon: icon ?? this.icon,
    showIcon: showIcon ?? this.showIcon,
    dismissible: dismissible ?? this.dismissible,
    onDismiss: onDismiss ?? this.onDismiss,
    action: action ?? this.action,
  );
}