getMainAxisAlignment method
Implementation
MainAxisAlignment getMainAxisAlignment(String? value) {
value ??= "default";
switch (value) {
case "center":
return MainAxisAlignment.center;
case "end":
return MainAxisAlignment.end;
case "spaceEvenly":
return MainAxisAlignment.spaceEvenly;
case "spaceAround":
return MainAxisAlignment.spaceAround;
case "spaceBetween":
return MainAxisAlignment.spaceBetween;
default:
return MainAxisAlignment.start;
}
}