setPaddingTop method
- @ControllerProps(NodeProps.kPaddingTop)
- TextInputRenderViewModel renderViewModel,
- Object? paddingTop
Implementation
@ControllerProps(NodeProps.kPaddingTop)
void setPaddingTop(TextInputRenderViewModel renderViewModel, Object? paddingTop) {
if (paddingTop is int) {
renderViewModel.paddingTop = paddingTop.toDouble();
} else if (paddingTop is double) {
renderViewModel.paddingTop = paddingTop;
} else {
renderViewModel.paddingTop = 0.0;
}
}