copyWith method

DialogProps copyWith({
  1. String? title,
  2. List<Widget>? content,
  3. List<Widget>? actions,
  4. bool? showCloseButton,
  5. void onClose()?,
  6. double? maxWidth,
  7. bool? barrierDismissible,
})

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,
  );
}