resolveAlignItems static method

AlignItems resolveAlignItems(
  1. String alignItems
)

Implementation

static AlignItems resolveAlignItems(String alignItems) {
  switch (alignItems) {
    case 'flex-start':
    case 'start':
      return AlignItems.flexStart;
    case 'flex-end':
    case 'end':
      return AlignItems.flexEnd;
    case 'center':
      return AlignItems.center;
    case 'baseline':
      return AlignItems.baseline;
    case 'stretch':
    default:
      return AlignItems.stretch;
  }
}