getTextAlign method
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;
}
}