setShadowOffset method
- @ControllerProps(NodeProps.shadowOffset)
- T viewModel,
- 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;
}
}