resolveJustifyContent static method
Implementation
static JustifyContent resolveJustifyContent(String justifyContent) {
switch (justifyContent) {
case 'stretch':
case 'normal':
return JustifyContent.stretch;
case 'flex-end':
return JustifyContent.flexEnd;
case 'end':
return JustifyContent.end;
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':
return JustifyContent.flexStart;
case 'start':
return JustifyContent.start;
default:
return JustifyContent.flexStart;
}
}