resolveAlignSelf static method

AlignSelf resolveAlignSelf(
  1. String alignSelf
)

Implementation

static AlignSelf resolveAlignSelf(String alignSelf) {
  switch (alignSelf) {
    case 'flex-start':
    case 'start':
      return AlignSelf.flexStart;
    case 'flex-end':
    case 'end':
      return AlignSelf.flexEnd;
    case 'center':
      return AlignSelf.center;
    case 'stretch':
      return AlignSelf.stretch;
    case 'baseline':
      return AlignSelf.baseline;
    default:
      return AlignSelf.auto;
  }
}