setVerticalAlignment method

  1. @ControllerProps(propVerticalAlignment)
void setVerticalAlignment(
  1. String alignment
)

Implementation

@ControllerProps(propVerticalAlignment)
void setVerticalAlignment(String alignment) {
  if (alignment == 'baseline') {
    _verticalAlignment = ui.PlaceholderAlignment.baseline;
  } else if (alignment == 'middle') {
    _verticalAlignment = ui.PlaceholderAlignment.middle;
  } else if (alignment == 'top') {
    _verticalAlignment = ui.PlaceholderAlignment.top;
  } else if (alignment == 'bottom') {
    _verticalAlignment = ui.PlaceholderAlignment.bottom;
  }
}