resolveAlignItems static method
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;
}
}