getCrossAxisAlignment function
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;
}
}