parseWrapAlignment function
Implementation
WrapAlignment parseWrapAlignment(String? wrapAlignmentString) {
if (wrapAlignmentString == null) {
return WrapAlignment.start;
}
switch (wrapAlignmentString) {
case "start":
return WrapAlignment.start;
case "end":
return WrapAlignment.end;
case "center":
return WrapAlignment.center;
case "spaceBetween":
return WrapAlignment.spaceBetween;
case "spaceAround":
return WrapAlignment.spaceAround;
case "spaceEvenly":
return WrapAlignment.spaceEvenly;
}
return WrapAlignment.start;
}