setTextAlign method
void
setTextAlign(
- String textAlignStr
)
Implementation
void setTextAlign(String textAlignStr) {
var align = TextAlign.start;
if ("auto" == (textAlignStr)) {
align = TextAlign.start;
} else if ("left" == (textAlignStr)) {
align = TextAlign.left;
} else if ("right" == (textAlignStr)) {
align = TextAlign.right;
} else if ("center" == (textAlignStr)) {
align = TextAlign.center;
} else if ("justify" == (textAlignStr)) {
align = TextAlign.justify;
} else {
LogUtils.e(kTag, "Invalid textAlign: $textAlign");
}
textAlign = align;
}