copyWith method
AlertProps
copyWith({
- ColorVariant? color,
- String? title,
- String? message,
- Widget? child,
- AlertStyle? style,
- Widget? icon,
- bool? showIcon,
- bool? dismissible,
- void onDismiss()?,
- 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,
);
}