setTransform method

  1. @ControllerProps(NodeProps.kTransform)
void setTransform(
  1. T viewModel,
  2. VoltronArray? transformArray
)

Implementation

@ControllerProps(NodeProps.kTransform)
void setTransform(T viewModel, VoltronArray? transformArray) {
  final transform = TransformUtil.getTransformMatrix4(transformArray);
  viewModel.transform = transform;
}