alignToCode method

String alignToCode(
  1. Alignment? value
)

Implementation

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