copyWith method

MyoroScreenConfiguration copyWith({
  1. MyoroDrawerController? drawerController,
  2. bool drawerControllerProvided = true,
  3. PreferredSizeWidget? appBar,
  4. bool appBarProvided = true,
  5. bool? drawerEnableOpenDragGesture,
  6. bool? endDrawerEnableOpenDragGesture,
  7. 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,
  );
}