copyWith method
DialogProps
copyWith(
{ - String? id,
- bool? isOpen,
- String? title,
- List<Widget>? content,
- List<Widget>? actions,
- bool? showCloseButton,
- void onClose()?,
- double? maxWidth,
- bool? barrierDismissible,
- bool? escapeCloses,
- bool? focusTrap,
- bool? restoreFocus,
})
Implementation
DialogProps copyWith({
String? id,
bool? isOpen,
String? title,
List<Widget>? content,
List<Widget>? actions,
bool? showCloseButton,
void Function()? onClose,
double? maxWidth,
bool? barrierDismissible,
bool? escapeCloses,
bool? focusTrap,
bool? restoreFocus,
}) {
return DialogProps(
id: id ?? this.id,
isOpen: isOpen ?? this.isOpen,
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,
escapeCloses: escapeCloses ?? this.escapeCloses,
focusTrap: focusTrap ?? this.focusTrap,
restoreFocus: restoreFocus ?? this.restoreFocus,
);
}