copyWith method
Implementation
DialogProps copyWith({
String? title,
List<Widget>? content,
List<Widget>? actions,
bool? showCloseButton,
void Function()? onClose,
double? maxWidth,
bool? barrierDismissible,
}) {
return DialogProps(
title: title ?? this.title,
content: content ?? this.content,
actions: actions ?? this.actions,
showCloseButton: showCloseButton ?? this.showCloseButton,
onClose: onClose ?? this.onClose,
maxWidth: maxWidth ?? this.maxWidth,
barrierDismissible: barrierDismissible ?? this.barrierDismissible,
);
}