exportTextAlign function
Implementation
String exportTextAlign(TextAlign? textAlign) {
String rt = "start";
if (textAlign == TextAlign.left) {
rt = "left";
}
if (textAlign == TextAlign.right) {
rt = "right";
}
if (textAlign == TextAlign.center) {
rt = "center";
}
if (textAlign == TextAlign.justify) {
rt = "justify";
}
if (textAlign == TextAlign.start) {
rt = "start";
}
if (textAlign == TextAlign.end) {
rt = "end";
}
return rt;
}