fromString method
Implementation
MainAxisAlignment fromString(String justify) {
if (justify == "justify-center") {
return MainAxisAlignment.center;
} else if (justify == "justify-start") {
return MainAxisAlignment.start;
} else if (justify == "justify-end") {
return MainAxisAlignment.end;
} else if (justify == "justify-between") {
return MainAxisAlignment.spaceBetween;
} else if (justify == "justify-around") {
return MainAxisAlignment.spaceAround;
} else if (justify == "justify-evenly") {
return MainAxisAlignment.spaceEvenly;
}
return MainAxisAlignment.start;
}