setTextAlignVertical method

  1. @ControllerProps(NodeProps.kTextAlignVertical)
void setTextAlignVertical(
  1. TextInputRenderViewModel renderViewModel,
  2. String? textAlignVertical
)

Implementation

@ControllerProps(NodeProps.kTextAlignVertical)
void setTextAlignVertical(TextInputRenderViewModel renderViewModel, String? textAlignVertical) {
  if (textAlignVertical == null || "auto" == textAlignVertical) {
    renderViewModel.textAlignVertical = null;
  } else if ("top" == textAlignVertical) {
    renderViewModel.textAlignVertical = TextAlignVertical.top;
  } else if ("bottom" == textAlignVertical) {
    renderViewModel.textAlignVertical = TextAlignVertical.bottom;
  } else if ("center" == textAlignVertical) {
    renderViewModel.textAlignVertical = TextAlignVertical.center;
  }
}