GroupViewModel.copy constructor

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

Implementation

GroupViewModel.copy(
  int id,
  int instanceId,
  String className,
  RenderContext context,
  GroupViewModel viewModel,
) : super.copy(id, instanceId, className, context, viewModel) {
  interceptTouch = viewModel.interceptTouch;
  interceptPullUp = viewModel.interceptPullUp;
  interceptTouch = viewModel.interceptTouch;
  _children.addAll(viewModel.children);
  _childrenMap.addAll(viewModel._childrenMap);
  _sortedIdList.addAll(viewModel.sortedIdList);
}