getTextAlign method

TextAlign getTextAlign(
  1. String? align
)

Implementation

TextAlign getTextAlign(String? align) {
  align ??= "default";
  switch (align) {
    case "right":
      return TextAlign.right;
    case "center":
      return TextAlign.center;
    case "justify":
      return TextAlign.justify;
    default:
      return TextAlign.left;
  }
}