textAlign static method

TextAlign textAlign(
  1. dynamic value
)

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,
    };