setShadowOffset method

  1. @ControllerProps(NodeProps.shadowOffset)
void setShadowOffset(
  1. T viewModel,
  2. VoltronMap? shadowOffset
)

Implementation

@ControllerProps(NodeProps.shadowOffset)
void setShadowOffset(T viewModel, VoltronMap? shadowOffset) {
  if (shadowOffset != null) {
    viewModel.shadowOffsetX = shadowOffset.get<double>('x') ?? 0.0;
    viewModel.shadowOffsetY = shadowOffset.get<double>('y') ?? 0.0;
  }
}