# toSimpleTextAlign function Null safety

SimpleTextAlign toSimpleTextAlign(

1. int? index

)

## Implementation

    SimpleTextAlign toSimpleTextAlign(int? index) {
      switch (index) {
        case 0:
          return SimpleTextAlign.left;
        case 1:
          return SimpleTextAlign.center;
        case 2:
          return SimpleTextAlign.right;
        case 3:
          return SimpleTextAlign.end;
        case 4:
          return SimpleTextAlign.justify;
        case 5:
          return SimpleTextAlign.start;
      }
      return SimpleTextAlign.unknown;
    }