fromString method
Implementation
MainAxisSize fromString(String size) {
if (size == "axis-max") {
return MainAxisSize.max;
} else if (size == "axis-min") {
return MainAxisSize.min;
}
return MainAxisSize.max;
}
MainAxisSize fromString(String size) {
if (size == "axis-max") {
return MainAxisSize.max;
} else if (size == "axis-min") {
return MainAxisSize.min;
}
return MainAxisSize.max;
}