convertValueToCode static method

String convertValueToCode(
  1. Alignment? value
)

Implementation

static String convertValueToCode(final Alignment? value) {
  var result = 'Alignment.topLeft';
  if (value == Alignment.topCenter) result = 'Alignment.topCenter';
  if (value == Alignment.topRight) result = 'Alignment.topRight';
  if (value == Alignment.centerLeft) result = 'Alignment.centerLeft';
  if (value == Alignment.center) result = 'Alignment.center';
  if (value == Alignment.centerRight) result = 'Alignment.centerRight';
  if (value == Alignment.bottomLeft) result = 'Alignment.bottomLeft';
  if (value == Alignment.bottomCenter) result = 'Alignment.bottomCenter';
  if (value == Alignment.bottomRight) result = 'Alignment.bottomRight';
  return result;
}