convertStringToAlign method
Implementation
TextAlign convertStringToAlign() {
switch (align) {
case 'center':
return TextAlign.center;
case 'left':
return TextAlign.left;
case 'right':
return TextAlign.right;
case 'justify':
return TextAlign.justify;
default:
return TextAlign.left;
}
}