copyWith method
DrawerProps
copyWith({
- bool? isOpen,
- void onClose()?,
- DrawerPosition? position,
- DrawerSize? size,
- Widget? child,
- Widget? header,
- bool? showBackdrop,
- bool? closeOnBackdropClick,
- bool? showCloseButton,
- String? width,
- String? height,
Implementation
DrawerProps copyWith({
bool? isOpen,
void Function()? onClose,
DrawerPosition? position,
DrawerSize? size,
Widget? child,
Widget? header,
Widget? footer,
bool? showBackdrop,
bool? closeOnBackdropClick,
bool? showCloseButton,
String? width,
String? height,
}) {
return DrawerProps(
isOpen: isOpen ?? this.isOpen,
onClose: onClose ?? this.onClose,
position: position ?? this.position,
size: size ?? this.size,
child: child ?? this.child,
header: header ?? this.header,
footer: footer ?? this.footer,
showBackdrop: showBackdrop ?? this.showBackdrop,
closeOnBackdropClick: closeOnBackdropClick ?? this.closeOnBackdropClick,
showCloseButton: showCloseButton ?? this.showCloseButton,
width: width ?? this.width,
height: height ?? this.height,
);
}