setPaddingRight method

  1. @ControllerProps(NodeProps.kPaddingRight)
void setPaddingRight(
  1. ListViewModel renderViewModel,
  2. 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;
  }
}