parseMainAxisAlignment function
Implementation
MainAxisAlignment parseMainAxisAlignment(String? mainAxisAlignmentString) {
switch (mainAxisAlignmentString) {
case 'start':
return MainAxisAlignment.start;
case 'end':
return MainAxisAlignment.end;
case 'center':
return MainAxisAlignment.center;
case 'spaceBetween':
return MainAxisAlignment.spaceBetween;
case 'spaceAround':
return MainAxisAlignment.spaceAround;
case 'spaceEvenly':
return MainAxisAlignment.spaceEvenly;
}
return MainAxisAlignment.start;
}