fromString method

MainAxisSize fromString(
  1. String size
)

Implementation

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

  return MainAxisSize.max;
}