convertValueToDropDown static method

String convertValueToDropDown(
  1. Alignment key
)

Implementation

static String convertValueToDropDown(final Alignment key) {
  var align = 'Top Left';
  if (key == Alignment.topCenter) align = 'Top Center';
  if (key == Alignment.topRight) align = 'Top Right';
  if (key == Alignment.centerLeft) align = 'Center Left';
  if (key == Alignment.center) align = 'Center';
  if (key == Alignment.centerRight) align = 'Center Right';
  if (key == Alignment.bottomLeft) align = 'Bottom Left';
  if (key == Alignment.bottomCenter) align = 'Bottom Center';
  if (key == Alignment.bottomRight) align = 'Bottom Right';
  return align;
}