copyWith method
AlertProps
copyWith({
- AlertSeverity? severity,
- String? title,
- String? message,
- Component? child,
- AlertVariant? variant,
- Component? icon,
- bool? showIcon,
- bool? dismissible,
- void onDismiss()?,
- 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,
);
}