copyWith method

AlertProps copyWith({
  1. AlertSeverity? severity,
  2. String? title,
  3. String? message,
  4. Component? child,
  5. AlertVariant? variant,
  6. Component? icon,
  7. bool? showIcon,
  8. bool? dismissible,
  9. void onDismiss()?,
  10. Component? action,
})

Implementation

AlertProps copyWith({
  AlertSeverity? severity,
  String? title,
  String? message,
  Component? child,
  AlertVariant? variant,
  Component? icon,
  bool? showIcon,
  bool? dismissible,
  void Function()? onDismiss,
  Component? action,
}) {
  return AlertProps(
    severity: severity ?? this.severity,
    title: title ?? this.title,
    message: message ?? this.message,
    child: child ?? this.child,
    variant: variant ?? this.variant,
    icon: icon ?? this.icon,
    showIcon: showIcon ?? this.showIcon,
    dismissible: dismissible ?? this.dismissible,
    onDismiss: onDismiss ?? this.onDismiss,
    action: action ?? this.action,
  );
}