parseTextAlign static method

TextAlign? parseTextAlign(
  1. String value
)

Implementation

static TextAlign? parseTextAlign(String value) {
  switch (value) {
    case START:
      return TextAlign.start;
    case END:
      return TextAlign.end;
    case LEFT:
      return TextAlign.left;
    case RIGHT:
      return TextAlign.right;
    case CENTER:
      return TextAlign.center;
  }
  return null;
}