resolveVerticalAlign static method

VerticalAlign resolveVerticalAlign(
  1. String verticalAlign
)

Implementation

static VerticalAlign resolveVerticalAlign(String verticalAlign) {
  switch (verticalAlign) {
    case TOP:
      return VerticalAlign.top;
    case BOTTOM:
      return VerticalAlign.bottom;
  }
  return VerticalAlign.baseline;
}