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