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