resolveTextAlign static method
Implementation
static TextAlign? resolveTextAlign(String value) {
TextAlign? alignment;
switch (value) {
case 'end':
case 'right':
alignment = TextAlign.end;
break;
case 'center':
alignment = TextAlign.center;
break;
case 'justify':
alignment = TextAlign.justify;
break;
case 'start':
case 'left':
alignment = TextAlign.start;
// Like inherit, which is the same with parent element.
// Not impl it due to performance consideration.
// case 'match-parent':
}
return alignment;
}