fromString method

CrossAxisAlignment fromString(
  1. String items
)

Implementation

CrossAxisAlignment fromString(String items) {
  if (items == "items-start") {
    return CrossAxisAlignment.start;
  } else if (items == "items-end") {
    return CrossAxisAlignment.end;
  } else if (items == "items-center") {
    return CrossAxisAlignment.center;
  } else if (items == "items-baseline") {
    return CrossAxisAlignment.baseline;
  } else if (items == "items-stretch") {
    return CrossAxisAlignment.stretch;
  }
  return CrossAxisAlignment.start;
}