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