copyWith method
SheetProps
copyWith(
{ - bool? isOpen,
- Widget? child,
- SheetPosition? position,
- SheetSizeVariant? size,
- void onClose()?,
- bool? showCloseButton,
- String? title,
- String? description,
- bool? showBackdrop,
- bool? closeOnBackdropClick,
- bool? showDragHandle,
- String? maxWidth,
})
Implementation
SheetProps copyWith({
bool? isOpen,
Widget? child,
SheetPosition? position,
SheetSizeVariant? size,
void Function()? onClose,
bool? showCloseButton,
String? title,
String? description,
Widget? header,
Widget? footer,
bool? showBackdrop,
bool? closeOnBackdropClick,
bool? showDragHandle,
String? maxWidth,
}) {
return SheetProps(
isOpen: isOpen ?? this.isOpen,
child: child ?? this.child,
position: position ?? this.position,
size: size ?? this.size,
onClose: onClose ?? this.onClose,
showCloseButton: showCloseButton ?? this.showCloseButton,
title: title ?? this.title,
description: description ?? this.description,
header: header ?? this.header,
footer: footer ?? this.footer,
showBackdrop: showBackdrop ?? this.showBackdrop,
closeOnBackdropClick: closeOnBackdropClick ?? this.closeOnBackdropClick,
showDragHandle: showDragHandle ?? this.showDragHandle,
maxWidth: maxWidth ?? this.maxWidth,
);
}