updateAlign method
Implementation
void updateAlign(TextAlign alg) {
switch (alg) {
case TextAlign.center:
align = 'center';
break;
case TextAlign.right:
align = 'right';
break;
case TextAlign.justify:
align = 'justify';
break;
default:
align = 'left';
}
}