toTextAlign property

TextAlign get toTextAlign

Implementation

TextAlign get toTextAlign {
  if (this == Alignment.topLeft || this == Alignment.centerLeft || this == Alignment.bottomLeft) {
    return TextAlign.left;
  } else if (this == Alignment.topRight || this == Alignment.centerRight || this == Alignment.bottomRight) {
    return TextAlign.right;
  } else {
    return TextAlign.center;
  }
}