getTextAlignVertical method

TextAlignVertical? getTextAlignVertical(
  1. String? align
)

Implementation

TextAlignVertical? getTextAlignVertical(String? align) {
  if (align == null) {
    return null;
  }

  switch (align) {
    case "top":
      return TextAlignVertical.top;
    case "center":
      return TextAlignVertical.center;
    case "bottom":
      return TextAlignVertical.bottom;
    default:
      return null;
  }
}