WebViewViewModel.copy constructor

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

Implementation

WebViewViewModel.copy(
  int id,
  int instanceId,
  String className,
  RenderContext context,
  WebViewViewModel viewModel,
) : super.copy(id, instanceId, className, context, viewModel) {
  tempUrl = viewModel.tempUrl;
  tempUserAgent = viewModel.tempUserAgent;
  controller = viewModel.controller;
  onLoadStartEventEnable = viewModel.onLoadStartEventEnable;
  onLoadEndEventEnable = viewModel.onLoadEndEventEnable;
  onErrorEventEnable = viewModel.onErrorEventEnable;
  onLoadEventEnable = viewModel.onLoadEventEnable;
}