copyWith method
MyoroScreenConfiguration
copyWith({
- MyoroDrawerController? drawerController,
- bool drawerControllerProvided = true,
- PreferredSizeWidget? appBar,
- bool appBarProvided = true,
- bool? drawerEnableOpenDragGesture,
- bool? endDrawerEnableOpenDragGesture,
- Widget? body,
inherited
Implementation
MyoroScreenConfiguration copyWith({
MyoroDrawerController? drawerController,
bool drawerControllerProvided = true,
PreferredSizeWidget? appBar,
bool appBarProvided = true,
bool? drawerEnableOpenDragGesture,
bool? endDrawerEnableOpenDragGesture,
Widget? body,
}) {
return MyoroScreenConfiguration(
drawerController: drawerControllerProvided ? (drawerController ?? self.drawerController) : null,
appBar: appBarProvided ? (appBar ?? self.appBar) : null,
drawerEnableOpenDragGesture: drawerEnableOpenDragGesture ?? self.drawerEnableOpenDragGesture,
endDrawerEnableOpenDragGesture: endDrawerEnableOpenDragGesture ?? self.endDrawerEnableOpenDragGesture,
body: body ?? self.body,
);
}