textAlign static method
Implementation
static TextAlign textAlign(dynamic value) => switch (value) {
'right' => TextAlign.right,
'left' => TextAlign.left,
'center' => TextAlign.center,
'end' => TextAlign.end,
'justify' => TextAlign.justify,
_ => TextAlign.start,
};