ModalRenderViewModel.copy constructor

ModalRenderViewModel.copy({
  1. required int id,
  2. required int instanceId,
  3. required String className,
  4. required RenderContext<LoadInstanceContext> context,
  5. required ModalRenderViewModel viewModel,
})

Implementation

ModalRenderViewModel.copy({
  required int id,
  required int instanceId,
  required String className,
  required RenderContext context,
  required ModalRenderViewModel viewModel,
}) : super.copy(id, instanceId, className, context, viewModel) {
  animationSwitch = viewModel.animationSwitch;
  animationType = viewModel.animationType;
  animationDuration = viewModel.animationDuration;
  barrierColor = viewModel.barrierColor;
  immersionStatusBar = viewModel.immersionStatusBar;
  statusBarTextDarkColor = viewModel.statusBarTextDarkColor;
  transparent = viewModel.transparent;
  canDialogShow = viewModel.canDialogShow;
  oldWidth = viewModel.oldWidth;
  oldHeight = viewModel.oldHeight;
  modalKey = viewModel.modalKey;
}