parseAxis function
Implementation
Axis parseAxis(String? axisString) {
if (axisString == null) {
return Axis.horizontal;
}
switch (axisString) {
case "horizontal":
return Axis.horizontal;
case "vertical":
return Axis.vertical;
}
return Axis.horizontal;
}