resolveAlignContent static method

AlignContent resolveAlignContent(
  1. String alignContent
)

Implementation

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