RenderViewModel.copy constructor

RenderViewModel.copy(
  1. int _id,
  2. int _instanceId,
  3. String _className,
  4. RenderContext<LoadInstanceContext> _renderContext,
  5. RenderViewModel viewModel,
)

Implementation

RenderViewModel.copy(
  this._id,
  this._instanceId,
  this._className,
  this._renderContext,
  RenderViewModel viewModel,
) {
  display = viewModel.display;
  _x = viewModel.layoutX;
  _y = viewModel.layoutY;
  _width = viewModel.width;
  _height = viewModel.height;
  parent = viewModel.parent;
  _dispatcher = viewModel.gestureDispatcher;
  accessibilityLabel = viewModel.accessibilityLabel;
  backgroundColor = viewModel.backgroundColor;
  backgroundImage = viewModel.backgroundImage;
  backgroundImgSize = viewModel.backgroundImgSize;
  backgroundPositionX = viewModel.backgroundPositionX;
  backgroundPositionY = viewModel.backgroundPositionY;
  backgroundImgRepeat = viewModel.backgroundImgRepeat;
  opacity = viewModel.opacity;
  borderRadius = viewModel.borderRadius;
  topLeftBorderRadius = viewModel.topLeftBorderRadius;
  topRightBorderRadius = viewModel.topRightBorderRadius;
  bottomRightBorderRadius = viewModel.bottomRightBorderRadius;
  bottomLeftBorderRadius = viewModel.bottomLeftBorderRadius;
  borderWidth = viewModel.borderWidth;
  borderLeftWidth = viewModel.borderLeftWidth;
  borderTopWidth = viewModel.borderTopWidth;
  borderRightWidth = viewModel.borderRightWidth;
  borderBottomWidth = viewModel.borderBottomWidth;
  borderColor = viewModel.borderColor;
  borderLeftColor = viewModel.borderLeftColor;
  borderTopColor = viewModel.borderTopColor;
  borderRightColor = viewModel.borderRightColor;
  borderBottomColor = viewModel.borderBottomColor;
  borderStyle = viewModel.borderStyle;
  overflow = viewModel.overflow;
  boxShadow = viewModel.boxShadow;
  shadowOffsetX = viewModel.shadowOffsetX;
  shadowOffsetY = viewModel.shadowOffsetY;
  shadowOpacity = viewModel.shadowOpacity;
  shadowRadius = viewModel.shadowRadius;
  shadowSpread = viewModel.shadowSpread;
  shadowColor = viewModel.shadowColor;
  linearGradient = viewModel.linearGradient;
  nextFocusUpId = viewModel.nextFocusUpId;
  nexFocusDownId = viewModel.nexFocusDownId;
  nextFocusLeftId = viewModel.nextFocusLeftId;
  nextFocusRightId = viewModel.nextFocusRightId;
  focusable = viewModel.focusable;
  zIndex = viewModel.zIndex;
  _extraInfo = viewModel.extraInfo;
  wrapper = viewModel.contextWrapper;
  transform = viewModel.transform?.clone();
  transformOrigin = viewModel.transformOrigin.copy();
  backgroundColor = viewModel.backgroundColor;
}