getCrossAxisAlignment function

CrossAxisAlignment getCrossAxisAlignment(
  1. String alignemnt
)

Implementation

CrossAxisAlignment getCrossAxisAlignment(String alignemnt) {
  switch (alignemnt) {
    case 'center':
      return CrossAxisAlignment.center;
    case 'start':
      return CrossAxisAlignment.start;
    case 'end':
      return CrossAxisAlignment.end;
    case 'stretch':
      return CrossAxisAlignment.stretch;
    case 'baseline':
      return CrossAxisAlignment.baseline;
    default:
      return CrossAxisAlignment.center;
  }
}