resolveJustifyContent static method

JustifyContent resolveJustifyContent(
  1. String justifyContent
)

Implementation

static JustifyContent resolveJustifyContent(String justifyContent) {
  switch (justifyContent) {
    case 'flex-end':
    case 'end':
      return JustifyContent.flexEnd;
    case 'center':
      return JustifyContent.center;
    case 'space-between':
      return JustifyContent.spaceBetween;
    case 'space-around':
      return JustifyContent.spaceAround;
    case 'space-evenly':
      return JustifyContent.spaceEvenly;
    case 'flex-start':
    case 'start':
    default:
      return JustifyContent.flexStart;
  }
}