convertAlignToString static method

String convertAlignToString(
  1. TextAlign align
)

Implementation

static String convertAlignToString(TextAlign align) {
  switch (align) {
    case TextAlign.center:
      return 'center';
    case TextAlign.left:
      return 'left';
    case TextAlign.right:
      return 'right';
    case TextAlign.justify:
      return 'justify';
    default:
      return 'left';
  }
}