getTextAlign function

TextAlign? getTextAlign(
  1. String value
)

Implementation

TextAlign? getTextAlign(String value) {
  return switch (value) {
    'center' => TextAlign.center,
    'right' => TextAlign.right,
    'left' => TextAlign.left,
    'justify' => null,
    Object() => null,
  };
}