setPaddingLeft method

  1. @ControllerProps(NodeProps.kPaddingLeft)
void setPaddingLeft(
  1. TextInputRenderViewModel renderViewModel,
  2. Object? paddingLeft
)

Implementation

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